corelibraries-devexpress-dot-xtrascheduler-dot-schedulerstoragebase-6ffe943e.md
Fires after deletion of one or several appointments.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.Desktop.dll
NuGet Package : DevExpress.Scheduler.CoreDesktop
public event PersistentObjectsEventHandler AppointmentsDeleted
Public Event AppointmentsDeleted As PersistentObjectsEventHandler
The AppointmentsDeleted event's data class is PersistentObjectsEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Objects | Gets the persistent objects for which the event occurs. |
The AppointmentsDeleted event serves as a notification that several appointments have been deleted. The event parameter’s PersistentObjectEventArgs.Object property allows you to get the deleted appointments.
To specify whether the appointments can be deleted, handle the SchedulerStorageBase.AppointmentDeleting event.
Important
Do not modify the SchedulerStorage data (i.e., change the AppointmentCollection collection, the Appointment items, etc.) within this event handler. Otherwise, the declared changes might be lost and won’t take effect at runtime.
The following code snippets (auto-collected from DevExpress Examples) contain references to the AppointmentsDeleted event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-scheduler-range-control-sample-app/CS/SampleSchedulerRangeControl/Form1.cs#L28
schedulerStorage.AppointmentsInserted += new DevExpress.XtraScheduler.PersistentObjectsEventHandler(schedulerStorage_AppointmentsInserted);
schedulerStorage.AppointmentsDeleted += new DevExpress.XtraScheduler.PersistentObjectsEventHandler(schedulerStorage_AppointmentsDeleted);
winforms-scheduler-bind-sql-database-design-time/CS/SchedulerDbExample/Form1.cs#L27
this.schedulerStorage1.AppointmentsInserted += OnAppointmentChangedInsertedDeleted;
this.schedulerStorage1.AppointmentsDeleted += OnAppointmentChangedInsertedDeleted;
}
winforms-scheduler-handle-fetchappointments-event-entity-framework/CS/Form1.cs#L25
schedulerControl1.Storage.AppointmentsInserted += schedulerStorage1_AppointmentsChangedInsertedDeleted;
schedulerControl1.Storage.AppointmentsDeleted += schedulerStorage1_AppointmentsChangedInsertedDeleted;
}
winforms-scheduler-mapping-converters/CS/SchedulerMappingConverterExample/Form1.cs#L36
schedulerStorage1.AppointmentsInserted += OnAppointmentChangedInsertedDeleted;
schedulerStorage1.AppointmentsDeleted += OnAppointmentChangedInsertedDeleted;
winforms-scheduler-range-control-sample-app/VB/SampleSchedulerRangeControl_VB/Form1.vb#L17
AddHandler schedulerStorage.AppointmentsInserted, AddressOf schedulerStorage_AppointmentsInserted
AddHandler schedulerStorage.AppointmentsDeleted, AddressOf schedulerStorage_AppointmentsDeleted
schedulerStorage.Appointments.CommitIdToDataSource = False
winforms-scheduler-bind-sql-server-customize-update-delete-insert-queries/VB/Form1.vb#L62
AddHandler schedulerStorage.AppointmentsChanged, AddressOf Storage_AppointmentsModified
AddHandler schedulerStorage.AppointmentsDeleted, AddressOf Storage_AppointmentsModified
AddHandler dataAdapter.RowUpdated, AddressOf Adapter_RowUpdated
winforms-scheduler-bind-sql-database-design-time/VB/SchedulerDbExample/Form1.vb#L27
AddHandler schedulerStorage1.AppointmentsInserted, AddressOf OnAppointmentChangedInsertedDeleted
AddHandler schedulerStorage1.AppointmentsDeleted, AddressOf OnAppointmentChangedInsertedDeleted
End Sub
winforms-scheduler-handle-fetchappointments-event-entity-framework/VB/Form1.vb#L23
AddHandler schedulerControl1.Storage.AppointmentsInserted, AddressOf schedulerStorage1_AppointmentsChangedInsertedDeleted
AddHandler schedulerControl1.Storage.AppointmentsDeleted, AddressOf schedulerStorage1_AppointmentsChangedInsertedDeleted
End Sub
winforms-scheduler-mapping-converters/VB/SchedulerMappingConverterExample/Form1.vb#L38
AddHandler schedulerStorage1.AppointmentsInserted, AddressOf OnAppointmentChangedInsertedDeleted
AddHandler schedulerStorage1.AppointmentsDeleted, AddressOf OnAppointmentChangedInsertedDeleted
See Also