SchedulerDataStorage.Resources Property

Gets the object which manages resources for appointments.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.1.dll

Declaration

public ResourceDataStorage Resources { get; }
Public ReadOnly Property Resources As ResourceDataStorage

Property Value

Type Description
ResourceDataStorage

A ResourceStorage object which manages resources for appointments.

Remarks

Appointments can be associated with resources. A resource is an object which has the following attributes: a unique identifier, caption, color and an image. Consider an application which schedules rooms in a hotel. In this application hotel rooms can be represented as resources which can be occupied by tourists.

The Resources property maintains a collection of resources for appointments. You can load resources from a data source by specifying the DataMember and DataSource properties of the ResourcesStorage object. Or you can populate the collection manually by adding items via the ResourceStorageBase.Items property.

Each item in the collection is an object which exposes the Resource interface.

In bound mode, the XtraScheduler control obtains information on appointments from a database which is specified by the DataMember and DataSource properties of the SchedulerDataStorage.Appointments object. In this mode resources from the Resources collection can be associated with the appointments via the AppointmentMappingInfo.ResourceId property.

In unbound mode, resources can be associated with appointments manually via the Appointment.ResourceId property.

See Also