Example #1
0
        public AppoitmentSynchronizer(AppointmentLabelBaseCollection labels, AppointmentStatusBaseCollection statuses, IModelListViewOptionsScheduler modelListViewOptionsScheduler) : base(null, modelListViewOptionsScheduler)
        {
            var appointmentsModel = modelListViewOptionsScheduler.OptionsScheduler.GetNode("Storage").GetNode("Appointments");

            ModelSynchronizerList.Add(new AppoitmentLabelsSynchronizer(labels, (IModelAppoitmentLabels)appointmentsModel.GetNode("Labels")));
            ModelSynchronizerList.Add(new AppoitmentStatusSynchronizer(statuses, (IModelAppoitmentStatuses)appointmentsModel.GetNode("Statuses")));
        }
Example #2
0
        public SchedulerListEditorModelSynchronizer(IInnerSchedulerControlOwner control, IModelListViewOptionsScheduler model, AppointmentLabelBaseCollection labels, AppointmentStatusBaseCollection statuses)
            : base(control, model)
        {
            ModelSynchronizerList.Add(new SchedulerControlSynchronizer(control, model));

            var appoitmentSynchronizer = new AppoitmentSynchronizer(labels, statuses, model);

            ModelSynchronizerList.Add(appoitmentSynchronizer);
        }