예제 #1
0
 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());
 }
예제 #2
0
 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());
 }
예제 #3
0
        public static void UpdateSchedulerDataSource()
        {
            SchedulerDataSource schedulerDataSource = new SchedulerDataSource(null);

            InsertAppointments(schedulerDataSource);
            UpdateAppointments(schedulerDataSource);
            RemoveAppointments(schedulerDataSource);
        }