Ejemplo n.º 1
0
 public void InitEvent(EventVM eventVM)
 {
     eventVM.Parent = this;
     if (eventVM.No == 0)
     {
         eventVM.No = NextEventNo;
     }
 }
Ejemplo n.º 2
0
        public EventFormVM(StudyUnitVM studyUnit) : base(studyUnit)
        {
            events = new ObservableCollection <EventVM>();
            foreach (Event eventModel in studyUnit.EventModels)
            {
                EventVM ev = new EventVM(eventModel);
                InitEvent(ev);
                events.Add(ev);
            }
            modelSyncher = new ModelSyncher <EventVM, Event>(this, events, studyUnit.EventModels);

            contents = new ObservableCollection <string>();
            foreach (Option option in Options.EventTypes)
            {
                contents.Add(option.Label);
            }
        }
Ejemplo n.º 3
0
        public EventFormVM(StudyUnitVM studyUnit)
            : base(studyUnit)
        {
            events = new ObservableCollection<EventVM>();
            foreach (Event eventModel in studyUnit.EventModels)
            {
                EventVM ev = new EventVM(eventModel);
                InitEvent(ev);
                events.Add(ev);
            }
            modelSyncher = new ModelSyncher<EventVM, Event>(this, events, studyUnit.EventModels);

            contents = new ObservableCollection<string>();
            foreach (Option option in Options.EventTypes)
            {
                contents.Add(option.Label);
            }
        }
Ejemplo n.º 4
0
 public void InitEvent(EventVM eventVM)
 {
     eventVM.Parent = this;
     if (eventVM.No == 0)
     {
         eventVM.No = NextEventNo;
     }
 }