From 42f12ddd8a281725f6d7bd5045708ca7a51ee0ac Mon Sep 17 00:00:00 2001 From: SvetlanaPN <26325291+SvetlanaPN@users.noreply.github.com> Date: Tue, 2 Oct 2018 19:17:06 +0300 Subject: [PATCH] SchedulerStorage -> SchedulerDataStorage --- CS/SimpleCustomFields/Form1.Designer.cs | 48 ++++++++++++------------- CS/SimpleCustomFields/Form1.cs | 12 +++---- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/CS/SimpleCustomFields/Form1.Designer.cs b/CS/SimpleCustomFields/Form1.Designer.cs index 3d6635a..4c309e6 100644 --- a/CS/SimpleCustomFields/Form1.Designer.cs +++ b/CS/SimpleCustomFields/Form1.Designer.cs @@ -32,7 +32,7 @@ private void InitializeComponent() DevExpress.XtraScheduler.TimeRuler timeRuler1 = new DevExpress.XtraScheduler.TimeRuler(); DevExpress.XtraScheduler.TimeRuler timeRuler2 = new DevExpress.XtraScheduler.TimeRuler(); this.schedulerControl1 = new DevExpress.XtraScheduler.SchedulerControl(); - this.schedulerStorage1 = new DevExpress.XtraScheduler.SchedulerStorage(this.components); + this.schedulerDataStorage1 = new DevExpress.XtraScheduler.SchedulerDataStorage(this.components); this.carSchedulingBindingSource = new System.Windows.Forms.BindingSource(this.components); this.carsDBDataSet = new SimpleCustomFields.CarsDBDataSet(); this.carsBindingSource = new System.Windows.Forms.BindingSource(this.components); @@ -40,7 +40,7 @@ private void InitializeComponent() this.carSchedulingTableAdapter = new SimpleCustomFields.CarsDBDataSetTableAdapters.CarSchedulingTableAdapter(); this.carsTableAdapter = new SimpleCustomFields.CarsDBDataSetTableAdapters.CarsTableAdapter(); ((System.ComponentModel.ISupportInitialize)(this.schedulerControl1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.schedulerStorage1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.schedulerDataStorage1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.carSchedulingBindingSource)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.carsDBDataSet)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.carsBindingSource)).BeginInit(); @@ -55,7 +55,7 @@ private void InitializeComponent() this.schedulerControl1.Name = "schedulerControl1"; this.schedulerControl1.Size = new System.Drawing.Size(699, 561); this.schedulerControl1.Start = new System.DateTime(2010, 7, 1, 0, 0, 0, 0); - this.schedulerControl1.Storage = this.schedulerStorage1; + this.schedulerControl1.DataStorage = this.schedulerDataStorage1; this.schedulerControl1.TabIndex = 0; this.schedulerControl1.Text = "schedulerControl1"; this.schedulerControl1.Views.DayView.TimeRulers.Add(timeRuler1); @@ -65,25 +65,25 @@ private void InitializeComponent() // // schedulerStorage1 // - this.schedulerStorage1.Appointments.CustomFieldMappings.Add(new DevExpress.XtraScheduler.AppointmentCustomFieldMapping("Amount", "Price")); - this.schedulerStorage1.Appointments.CustomFieldMappings.Add(new DevExpress.XtraScheduler.AppointmentCustomFieldMapping("ContactInfo", "ContactInfo")); - this.schedulerStorage1.Appointments.DataSource = this.carSchedulingBindingSource; - this.schedulerStorage1.Appointments.Mappings.AllDay = "AllDay"; - this.schedulerStorage1.Appointments.Mappings.Description = "Description"; - this.schedulerStorage1.Appointments.Mappings.End = "EndTime"; - this.schedulerStorage1.Appointments.Mappings.Label = "Label"; - this.schedulerStorage1.Appointments.Mappings.Location = "Location"; - this.schedulerStorage1.Appointments.Mappings.RecurrenceInfo = "RecurrenceInfo"; - this.schedulerStorage1.Appointments.Mappings.ReminderInfo = "ReminderInfo"; - this.schedulerStorage1.Appointments.Mappings.ResourceId = "CarId"; - this.schedulerStorage1.Appointments.Mappings.Start = "StartTime"; - this.schedulerStorage1.Appointments.Mappings.Status = "Status"; - this.schedulerStorage1.Appointments.Mappings.Subject = "Subject"; - this.schedulerStorage1.Appointments.Mappings.Type = "EventType"; - this.schedulerStorage1.Resources.DataSource = this.carsBindingSource; - this.schedulerStorage1.Resources.Mappings.Caption = "Trademark"; - this.schedulerStorage1.Resources.Mappings.Id = "ID"; - this.schedulerStorage1.Resources.Mappings.Image = "Picture"; + this.schedulerDataStorage1.Appointments.CustomFieldMappings.Add(new DevExpress.XtraScheduler.AppointmentCustomFieldMapping("Amount", "Price")); + this.schedulerDataStorage1.Appointments.CustomFieldMappings.Add(new DevExpress.XtraScheduler.AppointmentCustomFieldMapping("ContactInfo", "ContactInfo")); + this.schedulerDataStorage1.Appointments.DataSource = this.carSchedulingBindingSource; + this.schedulerDataStorage1.Appointments.Mappings.AllDay = "AllDay"; + this.schedulerDataStorage1.Appointments.Mappings.Description = "Description"; + this.schedulerDataStorage1.Appointments.Mappings.End = "EndTime"; + this.schedulerDataStorage1.Appointments.Mappings.Label = "Label"; + this.schedulerDataStorage1.Appointments.Mappings.Location = "Location"; + this.schedulerDataStorage1.Appointments.Mappings.RecurrenceInfo = "RecurrenceInfo"; + this.schedulerDataStorage1.Appointments.Mappings.ReminderInfo = "ReminderInfo"; + this.schedulerDataStorage1.Appointments.Mappings.ResourceId = "CarId"; + this.schedulerDataStorage1.Appointments.Mappings.Start = "StartTime"; + this.schedulerDataStorage1.Appointments.Mappings.Status = "Status"; + this.schedulerDataStorage1.Appointments.Mappings.Subject = "Subject"; + this.schedulerDataStorage1.Appointments.Mappings.Type = "EventType"; + this.schedulerDataStorage1.Resources.DataSource = this.carsBindingSource; + this.schedulerDataStorage1.Resources.Mappings.Caption = "Trademark"; + this.schedulerDataStorage1.Resources.Mappings.Id = "ID"; + this.schedulerDataStorage1.Resources.Mappings.Image = "Picture"; // // carSchedulingBindingSource // @@ -132,7 +132,7 @@ private void InitializeComponent() this.Text = "Custom Fields Example"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.schedulerControl1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.schedulerStorage1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.schedulerDataStorage1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.carSchedulingBindingSource)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.carsDBDataSet)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.carsBindingSource)).EndInit(); @@ -145,7 +145,7 @@ private void InitializeComponent() #endregion private DevExpress.XtraScheduler.SchedulerControl schedulerControl1; - private DevExpress.XtraScheduler.SchedulerStorage schedulerStorage1; + private DevExpress.XtraScheduler.SchedulerDataStorage schedulerDataStorage1; private DevExpress.XtraScheduler.DateNavigator dateNavigator1; private CarsDBDataSet carsDBDataSet; private System.Windows.Forms.BindingSource carSchedulingBindingSource; diff --git a/CS/SimpleCustomFields/Form1.cs b/CS/SimpleCustomFields/Form1.cs index 6b90120..bb11ea7 100644 --- a/CS/SimpleCustomFields/Form1.cs +++ b/CS/SimpleCustomFields/Form1.cs @@ -18,11 +18,11 @@ public Form1() { InitializeComponent(); - schedulerStorage1.AppointmentInserting += SchedulerStorage1_AppointmentInserting; - schedulerStorage1.AppointmentsInserted += new PersistentObjectsEventHandler(this.OnApptChangedInsertedDeleted); - schedulerStorage1.AppointmentChanging += SchedulerStorage1_AppointmentChanging; - schedulerStorage1.AppointmentsChanged += new PersistentObjectsEventHandler(this.OnApptChangedInsertedDeleted); - schedulerStorage1.AppointmentsDeleted += new PersistentObjectsEventHandler(this.OnApptChangedInsertedDeleted); + schedulerDataStorage1.AppointmentInserting += SchedulerStorage1_AppointmentInserting; + schedulerDataStorage1.AppointmentsInserted += new PersistentObjectsEventHandler(this.OnApptChangedInsertedDeleted); + schedulerDataStorage1.AppointmentChanging += SchedulerStorage1_AppointmentChanging; + schedulerDataStorage1.AppointmentsChanged += new PersistentObjectsEventHandler(this.OnApptChangedInsertedDeleted); + schedulerDataStorage1.AppointmentsDeleted += new PersistentObjectsEventHandler(this.OnApptChangedInsertedDeleted); this.schedulerControl1.Start = new DateTime(2010, 07, 01); } @@ -87,7 +87,7 @@ private void SchedulerStorage1_AppointmentInserting(object sender, PersistentObj #endregion #AppointmentInserting #region #AppointmentChanging private void SchedulerStorage1_AppointmentChanging(object sender, PersistentObjectCancelEventArgs e) { - object busyKey = schedulerStorage1.Appointments.Statuses.GetByType(AppointmentStatusType.Busy).Id; + object busyKey = schedulerDataStorage1.Appointments.Statuses.GetByType(AppointmentStatusType.Busy).Id; if (((Appointment)e.Object).StatusKey == busyKey) e.Cancel = true; } #endregion #AppointmentChanging