diff --git a/CS/XtraSchedulerEFTest/Form1.Designer.cs b/CS/XtraSchedulerEFTest/Form1.Designer.cs index 049242b..5cc29bf 100644 --- a/CS/XtraSchedulerEFTest/Form1.Designer.cs +++ b/CS/XtraSchedulerEFTest/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.schedulerStorage1 = new DevExpress.XtraScheduler.SchedulerDataStorage(this.components); this.eFAppointmentBindingSource = new System.Windows.Forms.BindingSource(this.components); this.eFResourceBindingSource = new System.Windows.Forms.BindingSource(this.components); this.panelControl1 = new DevExpress.XtraEditors.PanelControl(); @@ -52,7 +52,7 @@ private void InitializeComponent() this.schedulerControl1.Name = "schedulerControl1"; this.schedulerControl1.Size = new System.Drawing.Size(776, 466); this.schedulerControl1.Start = new System.DateTime(1753, 1, 1, 0, 0, 0, 0); - this.schedulerControl1.Storage = this.schedulerStorage1; + this.schedulerControl1.DataStorage = this.schedulerStorage1; this.schedulerControl1.TabIndex = 0; this.schedulerControl1.Text = "schedulerControl1"; this.schedulerControl1.Views.DayView.TimeRulers.Add(timeRuler1); @@ -130,7 +130,7 @@ private void InitializeComponent() #endregion private DevExpress.XtraScheduler.SchedulerControl schedulerControl1; - private DevExpress.XtraScheduler.SchedulerStorage schedulerStorage1; + private DevExpress.XtraScheduler.SchedulerDataStorage schedulerStorage1; private DevExpress.XtraEditors.PanelControl panelControl1; private DevExpress.XtraEditors.SimpleButton btnCreateAppointment; private System.Windows.Forms.BindingSource eFAppointmentBindingSource; diff --git a/CS/XtraSchedulerEFTest/Form1.cs b/CS/XtraSchedulerEFTest/Form1.cs index a6cf424..eda03bc 100644 --- a/CS/XtraSchedulerEFTest/Form1.cs +++ b/CS/XtraSchedulerEFTest/Form1.cs @@ -12,9 +12,8 @@ public Form1() { InitializeComponent(); - schedulerStorage1.Appointments.CommitIdToDataSource = false; schedulerStorage1.Appointments.ResourceSharing = true; - schedulerControl1.Storage.Resources.ColorSaving = ColorSavingType.ArgbColor; + schedulerControl1.DataStorage.Resources.ColorSaving = ColorSavingType.ArgbColor; #region #appmappings this.schedulerStorage1.Appointments.Mappings.AllDay = "AllDay"; @@ -38,9 +37,9 @@ public Form1() this.schedulerStorage1.Resources.Mappings.Image = "Image"; #endregion #resmappings - schedulerControl1.Storage.AppointmentsChanged += Storage_AppointmentsModified; - schedulerControl1.Storage.AppointmentsInserted += Storage_AppointmentsModified; - schedulerControl1.Storage.AppointmentsDeleted += Storage_AppointmentsModified; + schedulerControl1.DataStorage.AppointmentsChanged += Storage_AppointmentsModified; + schedulerControl1.DataStorage.AppointmentsInserted += Storage_AppointmentsModified; + schedulerControl1.DataStorage.AppointmentsDeleted += Storage_AppointmentsModified; schedulerControl1.GroupType = SchedulerGroupType.Resource; schedulerControl1.Start = DateTime.Now.Date; @@ -76,11 +75,5 @@ private void btnCreateAppointment_Click(object sender, EventArgs e) apt.LabelKey = 5; schedulerStorage1.Appointments.Add(apt); } - - - - - - } }