Back to Devexpress

SchedulerStorageBase.AppointmentsDeleted Event

corelibraries-devexpress-dot-xtrascheduler-dot-schedulerstoragebase-6ffe943e.md

latest7.5 KB
Original Source

SchedulerStorageBase.AppointmentsDeleted Event

Fires after deletion of one or several appointments.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.Desktop.dll

NuGet Package : DevExpress.Scheduler.CoreDesktop

Declaration

csharp
public event PersistentObjectsEventHandler AppointmentsDeleted
vb
Public Event AppointmentsDeleted As PersistentObjectsEventHandler

Event Data

The AppointmentsDeleted event's data class is PersistentObjectsEventArgs. The following properties provide information specific to this event:

PropertyDescription
ObjectsGets the persistent objects for which the event occurs.

Remarks

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

csharp
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

csharp
this.schedulerStorage1.AppointmentsInserted += OnAppointmentChangedInsertedDeleted;
    this.schedulerStorage1.AppointmentsDeleted += OnAppointmentChangedInsertedDeleted;
}

winforms-scheduler-handle-fetchappointments-event-entity-framework/CS/Form1.cs#L25

csharp
schedulerControl1.Storage.AppointmentsInserted += schedulerStorage1_AppointmentsChangedInsertedDeleted;
    schedulerControl1.Storage.AppointmentsDeleted += schedulerStorage1_AppointmentsChangedInsertedDeleted;
}

winforms-scheduler-mapping-converters/CS/SchedulerMappingConverterExample/Form1.cs#L36

csharp
schedulerStorage1.AppointmentsInserted += OnAppointmentChangedInsertedDeleted;
schedulerStorage1.AppointmentsDeleted += OnAppointmentChangedInsertedDeleted;

winforms-scheduler-range-control-sample-app/VB/SampleSchedulerRangeControl_VB/Form1.vb#L17

vb
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

vb
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

vb
AddHandler schedulerStorage1.AppointmentsInserted, AddressOf OnAppointmentChangedInsertedDeleted
    AddHandler schedulerStorage1.AppointmentsDeleted, AddressOf OnAppointmentChangedInsertedDeleted
End Sub

winforms-scheduler-handle-fetchappointments-event-entity-framework/VB/Form1.vb#L23

vb
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

vb
AddHandler schedulerStorage1.AppointmentsInserted, AddressOf OnAppointmentChangedInsertedDeleted
AddHandler schedulerStorage1.AppointmentsDeleted, AddressOf OnAppointmentChangedInsertedDeleted

Implements

AppointmentsDeleted

See Also

DeleteAppointment(Appointment)

AllowAppointmentDelete

SchedulerStorageBase Class

SchedulerStorageBase Members

DevExpress.XtraScheduler Namespace