A newer version of this page is available. Switch to the current version.

SchedulerStorage Class

The component that holds data for the SchedulerControl.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.1.dll

Declaration

[ComVisible(false)]
public class SchedulerStorage :
    SchedulerStorageBase,
    ISchedulerStorage,
    ISchedulerStorageBase,
    IBatchUpdateable,
    ISupportReminders,
    ISupportTimeZoneEngine,
    IDisposable,
    IDisposeState,
    IInternalSchedulerStorage,
    IInternalSchedulerStorageBase,
    IFilteredComponentsProvider
<ComVisible(False)>
Public Class SchedulerStorage
    Inherits SchedulerStorageBase
    Implements ISchedulerStorage,
               ISchedulerStorageBase,
               IBatchUpdateable,
               ISupportReminders,
               ISupportTimeZoneEngine,
               IDisposable,
               IDisposeState,
               IInternalSchedulerStorage,
               IInternalSchedulerStorageBase,
               IFilteredComponentsProvider

Related API Members

The following members accept/return SchedulerStorage objects:

Remarks

Data for the XtraScheduler control is contained in a storage represented by the SchedulerStorage class. This storage can be accessed via the control's SchedulerControl.Storage property.

The SchedulerStorage.Appointments and SchedulerStorage.Resources properties hold collections of appointments and appointment resources. Use these properties to populate the collections manually or automatically by binding them to data sources.

The following example demonstrates how to add the SchedulerStorage component to a form. Note that the Scheduler Storage can be added to your scheduling application at both design-time and runtime.

  • Design time.

    By default, the SchedulerStorage item is located in the DX.19.1: Scheduling toolbox tab of the Visual Studio IDE. So, to add a Scheduler Storage to your project, simply drag the corresponding toolbox item, and drop it onto the form. The SchedulerStorage component is placed in the Component Tray.

    HowTo_AddSchedulerStorage.png

    NOTE

    Every time a SchedulerControl is added to the form, if the form doesn't contain any Scheduler Storage components, then the new Scheduler Storage will be automatically created, and set to its SchedulerControl.Storage property. If at least one Scheduler Storage already exists on a form, then this instance will be assigned to the Scheduler Control, and a new instance won't be created.

  • Runtime.

    To add a Scheduler Storage to a form at runtime the following libraries should be included in the references list of the project: DevExpress.Data.v19.1.dll, DevExpress.Utils.v19.1.dll, DevExpress.XtraEditors.v19.1.dll, DevExpress.XtraScheduler.v19.1.Core.dll and DevExpress.XtraScheduler.v19.1.dll.

    
    // Create a new Scheduler storage.
       DevExpress.XtraScheduler.SchedulerStorage schedulerStorage1 = new DevExpress.XtraScheduler.SchedulerStorage(this.components);
    

Implements

See Also