Пример #1
0
 static DevExpress.XtraScheduler.SchedulerStorage InitSchedulerStorage() {
     var modelApplication = ApplicationHelper.Instance.Application.Model;
     var storage = new DevExpress.XtraScheduler.SchedulerStorage();
     storage.BeginInit();
     storage.EnableReminders = true;
     storage.RemindersCheckInterval = (((IModelApplicationScheduler)modelApplication).Scheduler).RemindersCheckInterval;
     var appointmentStorage = storage.Appointments;
     appointmentStorage.AutoReload = false;
     var mappingCollection = appointmentStorage.CustomFieldMappings;
     mappingCollection.Add(new AppointmentCustomFieldMapping(BOType, BOType));
     mappingCollection.Add(new AppointmentCustomFieldMapping(BOKey, BOKey));
     storage.EndInit();
     return storage;
 }
Пример #2
0
        static DevExpress.XtraScheduler.SchedulerStorage InitSchedulerStorage()
        {
            var modelApplication = ApplicationHelper.Instance.Application.Model;
            var storage          = new DevExpress.XtraScheduler.SchedulerStorage();

            storage.BeginInit();
            storage.EnableReminders        = true;
            storage.RemindersCheckInterval = (((IModelApplicationScheduler)modelApplication).Scheduler).RemindersCheckInterval;
            var appointmentStorage = storage.Appointments;

            appointmentStorage.AutoReload = false;
            var mappingCollection = appointmentStorage.CustomFieldMappings;

            mappingCollection.Add(new AppointmentCustomFieldMapping(BOType, BOType));
            mappingCollection.Add(new AppointmentCustomFieldMapping(BOKey, BOKey));
            storage.EndInit();
            return(storage);
        }