Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
Problem saving variance using custom appointment dialog
posted

I am using Custom Appointment Dialog and Custom Recurrence  Dialog in the application where I have integrated calendar control. I have used the stored procedure for getting the appointments and owners table and then used it to create dataset for binding it to the ultraCalendarInfo.  I am saving the appointments in the Appointment Changed event like below:

  OutlookAppointmentDialog dlg = new OutlookAppointmentDialog();

                    dlg.AppointmentChanged += new AppointmentChangedHandler(dlg_OnAppointmentChanged);                  

                    dlg.ShowDialog(appointment, this.MainCalendarInfo, this.ultraCalendarLook1, this, appointment.Owner);

 void dlg_OnAppointmentChanged(object sender, AppointmentChangedEventArgs e)

        {

           SaveAppointment(e.Appointment);

        }

 

When I open an existing recurring appointment  as occurence and modify it, the  recurring appointments gets dissappeared. I found out that when variance are created, a new instance of appointment is created. So, I tried to create new appointment when it is variance. While doing this, I end up getting two appointments in the calendar.  Could you please let me know how to save variance without using data bindings?

Thank you for your time.