static void InsertAppointments(SchedulerDataSource schedulerDataSource) { SchedulerAppointment[] appointmentsToInsert = SchedulerExtension.GetAppointmentsToInsert <SchedulerAppointment>("scheduler", schedulerDataSource.Appointments, schedulerDataSource.Resources, Settings.Storage.Appointments, Settings.Storage.Resources); schedulerDataSource.InsertSchedulerAppointments(appointmentsToInsert.ToList()); }
static void RemoveAppointments(SchedulerDataSource schedulerDataSource) { SchedulerAppointment[] appointmentsToRemove = SchedulerExtension.GetAppointmentsToRemove <SchedulerAppointment>("scheduler", schedulerDataSource.Appointments, schedulerDataSource.Resources, Settings.Storage.Appointments, Settings.Storage.Resources); schedulerDataSource.RemoveSchedulerAppointments(appointmentsToRemove.ToList()); }
public static void UpdateSchedulerDataSource() { SchedulerDataSource schedulerDataSource = new SchedulerDataSource(null); InsertAppointments(schedulerDataSource); UpdateAppointments(schedulerDataSource); RemoveAppointments(schedulerDataSource); }