Пример #1
0
 static void DeleteAppointments()
 {
     foreach (Appointment appointment in SchedulerExtension.GetAppointmentsToRemove <Appointment>("Scheduler", Appointments, Resources, AppointmentStorage, ResourceStorage))
     {
         OutlookDataProvider.DeleteAppointment(appointment);
     }
 }
Пример #2
0
        static void InsertAppointment()
        {
            Appointment appointment = SchedulerExtension.GetAppointmentToInsert <Appointment>("Scheduler",
                                                                                              OutlookDataProvider.GetAppointments(),
                                                                                              OutlookDataProvider.GetResources(),
                                                                                              SchedulerHelper.Settings.Storage.Appointments,
                                                                                              SchedulerHelper.Settings.Storage.Resources
                                                                                              );

            if (appointment != null)
            {
                OutlookDataProvider.InsertAppointment(appointment);
            }
        }