public override void Assign(ScheduleBase source) { base.Assign(source); EditableSchedule editableSchedule = source as EditableSchedule; if (editableSchedule != null) { Subject = editableSchedule.Subject; Description = editableSchedule.Description; StartTime = editableSchedule.StartTime; EndTime = editableSchedule.EndTime; } }
static void InsertAppointment() { EditableSchedule carScheduling = GetAppointmentToInsert <EditableSchedule>(EditableDataObject, SchedulerDemoHelper.DefaultAppointmentStorage); CarsDataProvider.InsertSchedule <EditableSchedule>(carScheduling); }