コード例 #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);
        }