Skip to content

LexEPoX/how-to-bind-the-xtrascheduler-with-multi-resource-appointments-to-xpo-e81

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to bind the XtraScheduler with multi-resource appointments to XPO

To bind the XtraScheduler to eXpress Persistent Objects, if an Apppointment Storage contains multi-resource appointments (the AppointmentStorage.ResourceSharing property is set to true), perform the following steps:

1. Add the DevExpress.Xpo.vX.y.dll assembly to the references list of the project.
2. Declare XPAppointment and XPResource classes (derived from XPObject).
3. Rebuild the application, so that these objects can be used for the XPCollection.
4. Drop two XPCollection components from the toolbox onto a Form and name them xpCollectionAppointments and xpCollectionResources.
5. Set their ObjectClassInfo properties to the XPAppointment and XPResource objects, respectively.
6. Set the DeleteObjectOnRemove property of the xpCollectionAppointments to true.
7. Set the SchedulerStorage.Appointments.DataSource property to xpCollectionAppointments, and the SchedulerStorage.Resources.DataSource property to xpCollectionResources.
8. Specify all required mappings for the AppointmentStorage and the ResourceStorage.
9. Handle the SchedulerStorage.AppointmentsChanged and SchedulerStorage.AppointmentsInserted events using the event handler which calls the XPBaseObject.Save method. The event handler is the same for both events.

This approach is illustrated by the sample project.


About

.NET, XtraScheduler Suite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%