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

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