Back to Devexpress

SchedulerDataStorage.AppointmentDependenciesInserted Event

windowsforms-devexpress-dot-xtrascheduler-dot-schedulerdatastorage-ae52ca3e.md

latest4.0 KB
Original Source

SchedulerDataStorage.AppointmentDependenciesInserted Event

Fires after one or several appointment dependencies have been added to the collection.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public event PersistentObjectsEventHandler AppointmentDependenciesInserted
vb
Public Event AppointmentDependenciesInserted As PersistentObjectsEventHandler

Event Data

The AppointmentDependenciesInserted 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 AppointmentDependenciesInserted event serves as a notification that appointment dependencies have been added. The event parameter’s PersistentObjectEventArgs.Object property allows you to get the inserted dependencies. To access the dependencies, you must cast the e.Object to the AppointmentBaseCollection type.

To validate insertion, or decide whether a dependency can be added, handle the SchedulerDataStorage.AppointmentDependencyInserting event.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppointmentDependenciesInserted 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-create-gantt-chart/CS/GanttExample/Form1.cs#L25

csharp
#region #AppointmentDependencyEvents
schedulerDataStorage1.AppointmentDependenciesInserted += new PersistentObjectsEventHandler(schedulerDataStorage1_AppointmentDependenciesInserted);
schedulerDataStorage1.AppointmentDependenciesChanged += new PersistentObjectsEventHandler(schedulerDataStorage1_AppointmentDependenciesChanged);

winforms-scheduler-create-gantt-chart/VB/GanttExample/Form1.vb#L27

vb
' #Region "#AppointmentDependencyEvents"
AddHandler schedulerDataStorage1.AppointmentDependenciesInserted, AddressOf schedulerDataStorage1_AppointmentDependenciesInserted
AddHandler schedulerDataStorage1.AppointmentDependenciesChanged, AddressOf schedulerDataStorage1_AppointmentDependenciesChanged

See Also

AppointmentDependencyInserting

SchedulerDataStorage Class

SchedulerDataStorage Members

DevExpress.XtraScheduler Namespace