Deleting appointment

Nov 10, 2013 at 10:03 AM
How to delete selected appointment or all appointments?
Coordinator
Nov 13, 2013 at 4:30 PM
Hi,

There is no built in methods for deleting appointments, if you consider the dayview example program, add a new context menu to ContextMenuStripDiary called Delete Appointment and ad the following code:
            if (dayView1.SelectedAppointment != null)
            {
                _appointments.Remove(dayView1.SelectedAppointment);
                ForceRefresh();
            }
I ahve updated the sample in the repository if it helps.

DayView will not create/delete for you instead you pass the possible diary entries through the ResolveAppointments event.

regards

Si