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
455
Delete a recurring appointment from UltraMonthViewSingle
posted

I am trying to delete a recurring appointment from the UltraMonthViewSingle, I have reference to an appointment but it is not removed from the UltraMonthViewSingle.

 

        private void ultraMonthViewSingle_DoubleClick(object sender, EventArgs e)

        {

            Point point = ultraMonthViewSingle.PointToClient(new Point(MousePosition.X, MousePosition.Y));

            Appointment appointment = ultraMonthViewSingle.GetAppointmentFromPoint(point);

            if (appointment != null)

            {

                    if (appointment.RecurringAppointmentRoot != null)

                    {

//recurring appointment, does not work removes only current appointment not series

                        appointment.RecurringAppointmentRoot.IsRemoved = true;

                        appointment.IsRemoved = true;

                    }

                    else

                    {

//edit appointment, this works

                        appointment.IsRemoved = true;

                    }

            }

        }

 

Parents Reply Children
No Data