Esempio n. 1
0
        public void AddSubMeasure(object dataContext)
        {
            {
                var subMeasure = new SubMeasure
                {
                    ReleatedMeasure    = Model,
                    Name               = NewSubMeasureName,
                    ResponsibleSubject = NewSubMeasureResponsibleSubject.Model
                };
                m_SubMeasureViewModels.Add(m_ViewModelFactory.CreateFromExisting(subMeasure));

                NotifyOfPropertyChange(() => SubMeasures);
            }
        }
Esempio n. 2
0
 public SubMeasureViewModel(SubMeasure submeasure, IResponsibleSubjectViewModelFactory responsibleSubjectViewModelFactory)
 {
     m_Model = submeasure;
     m_ResponsibleSubjectViewModelFactory = responsibleSubjectViewModelFactory;
 }
Esempio n. 3
0
 public SubMeasureViewModel CreateFromExisting(SubMeasure subMeasure)
 {
     return(new SubMeasureViewModel(subMeasure, m_ResponsibleSubjectViewModelFactory));
 }