Is there an easy way to copy an appointment (including the recurrence and variances) from one owner to another programatically? The way I'm trying to do it now is to create a new appointment and then try to add each of the components one at a time. For example, start date, end date, recurrence, and then each variance. It seems like there should be an easier way.
Thanks.
Use this event.
--------------------------------
private void WinScheduleControl_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { Point cursorPos = new Point(e.X, e.Y); Owner ownerAtPoint = null; UltraDayView dayView = sender as UltraDayView; UltraMonthViewSingleBase monthViewSingleBase = sender as UltraMonthViewSingleBase; if (dayView != null) ownerAtPoint = dayView.GetOwnerFromPoint(cursorPos); else if (monthViewSingleBase != null) ownerAtPoint = monthViewSingleBase.GetOwnerFromPoint(cursorPos); }
...........................................
Now ownerAtPoint contains ur selected owner. You can assign this owner to your pasted appointment only. Everything else needs to be unchanged.But you will have to handle the recurrance data manually, I think