コード例 #1
0
ファイル: Synchronizers.cs プロジェクト: xwagner2/eXpand
        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")));
        }
コード例 #2
0
ファイル: Synchronizers.cs プロジェクト: xwagner2/eXpand
        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);
        }