.NET, XtraScheduler Suite
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
CS Source auto update [skip ci] May 16, 2018
VB Source auto update [skip ci] May 16, 2018
.gitattributes initial commit Apr 23, 2018
.gitignore initial commit Apr 23, 2018
LICENSE initial commit Apr 23, 2018
Readme.md initial commit Apr 23, 2018
config.json initial commit Apr 23, 2018


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.