Ejemplo n.º 1
0
        private void CreateCatalogViewModel(Catalog catalog)
        {
            var cvm = m_MeasureViewModelFactory.CreateFromExisting(catalog);

            foreach (var measure in catalog.Measures)
            {
                CreateMeasureViewModel(measure, cvm);
            }
            m_Catalogs.Add(cvm);
        }
        private void CreateMeasureViewModel(EnergyMeasure measure)
        {
            var mvm = m_MeasureViewModelFactory.CreateFromExisting(measure);

            m_Measures.Add(mvm);
        }