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

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