SchedulerControl.AddAppointments(IEnumerable<AppointmentItem>, Boolean) Method
Adds the specified appointments to the AppointmentItems collection.
public bool AddAppointments( IEnumerable<AppointmentItem> appointments, bool showConflictsMessageBox = true )
Public Function AddAppointments( appointments As IEnumerable(Of AppointmentItem), showConflictsMessageBox As Boolean = True ) As Boolean
A collection of DevExpress.Xpf.Scheduling.AppointmentItem objects to be added to the AppointmentItems collection.
true, to display the message box that warns about conflicted appointments; otherwise, false.
true, if the appointments have been added to the AppointmentItems collection; otherwise, false.
The method does not add the specified appointments and returns false in either of the following cases:
- The appointments collection is empty
- It would lead to conflicts restricted by the AllowAppointmentConflicts property and the CustomAllowAppointmentConflicts event
- The Cancel property of your AppointmentAdding event implementation returns true.