Back to Devexpress

SchedulerControl.Storage Property

windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-367d8195.md

latest6.9 KB
Original Source

SchedulerControl.Storage Property

Gets or sets the storage object for the Scheduler control.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[Browsable(false)]
[DefaultValue(null)]
[EditorBrowsable(EditorBrowsableState.Never)]
public SchedulerStorage Storage { get; set; }
vb
<DefaultValue(Nothing)>
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Property Storage As SchedulerStorage

Property Value

TypeDefaultDescription
SchedulerStoragenull

A SchedulerStorage object that is the data storage for the Scheduler control.

|

Remarks

The Storage property is used for backward compatibility with earlier versions. Use the SchedulerControl.DataStorage property instead.

Use this property to get or set the SchedulerDataStorage. The data storage contains appointments, resources and appointment dependencies data for the scheduler.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Storage property.

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-display-custom-tooltips/CS/Form1.cs#L79

csharp
private void SetupSampleResource() {
    SchedulerStorage schedulerStorage = schedulerControl1.Storage;
    Resource res = schedulerStorage.CreateResource(0);

winforms-scheduler-print-appointments-using-reports/CS/PrintingViaReports/MyAppointmentEditForm.cs#L185

csharp
edStatus.Storage = control.Storage;
edLabel.Storage = control.Storage;

winforms-scheduler-sync-outlook-calendars/CS/SyncWithOutlook/Form1.cs#L30

csharp
comboBoxEdit1.Properties.Items.AddRange(OutlookExchangeHelper.GetOutlookCalendarPaths());
synchronizerHelper = new OutlookSynchronizerHelper(schedulerControl1.Storage, "", OutlookEntryIDFieldName);
checkEdit1.Checked = true;

winforms-scheduler-find-free-time-intervals/CS/FreeTimeIntervals/Form1.cs#L47

csharp
private TimeInterval FindInterval(TimeInterval clientInterval, TimeSpan duration) {
    FreeTimeCalculator calculator = new FreeTimeCalculator(schedulerControl1.Storage);
    // Set a handler for the IntervalFound event.

winforms-scheduler-custom-appointment-edit-form/CS/SchedulerDbExample/CustomAppointmentForm.cs#L55

csharp
this.control = control;
this.storage = control.Storage;

how-to-implement-a-custom-inplace-editor-for-appointments-e4826/VB/SchedulerInplaceEditorExample/MyInplaceEditor.vb#L77

vb
' Correct the text editor selection, which may result in overwriting the first typed character.
Dim storage As SchedulerStorage = control.Storage
If storage.Appointments.IsNewAppointment(appointment) Then

winforms-scheduler-display-custom-tooltips/VB/Form1.vb#L67

vb
Private Sub SetupSampleResource()
    Dim schedulerStorage As SchedulerStorage = schedulerControl1.Storage
    Dim res As Resource = schedulerStorage.CreateResource(0)

winforms-scheduler-print-appointments-using-reports/VB/PrintingViaReports/MyAppointmentEditForm.vb#L205

vb
edStatus.Storage = control.Storage
edLabel.Storage = control.Storage

winforms-scheduler-bind-sql-server-customize-update-delete-insert-queries/VB/Form1.vb#L29

vb
' 2) Adjust mappings
Dim schedulerStorage As SchedulerStorage = schedulerControl1.Storage
Dim appointmentMappings As AppointmentMappingInfo = schedulerStorage.Appointments.Mappings

winforms-scheduler-sync-outlook-calendars/VB/SyncWithOutlook/Form1.vb#L32

vb
comboBoxEdit1.Properties.Items.AddRange(OutlookExchangeHelper.GetOutlookCalendarPaths())
synchronizerHelper = New OutlookSynchronizerHelper(schedulerControl1.Storage, "", OutlookEntryIDFieldName)
checkEdit1.Checked = True

See Also

DataStorage

SchedulerControl Class

SchedulerControl Members

DevExpress.XtraScheduler Namespace