private void AddSectionToModel(BuildingStructuralElements.Slab slab, IThermalSection section)
 {
     SectionModel.AddModelElement(slab);
     RegisteredGeoemetries.Add(slab, section);
 }
        private void FillDataGrid(IThermalSection value)
        {
            //if (value is CompositeThermalSection) {
            //    _ThermalSectionEditor.LayersDataGridView.ItemsSource = (value as CompositeThermalSection).Sections;
            //     _ThermalSectionEditor.LayersDataGridView.UpdateLayout();
            //}

            if (value is CompositeThermalSection)
            {
                _ThermalSectionEditor.ViewModel.ThermalSectionsLayers = new ObservableCollection<IThermalSection>((value as CompositeThermalSection).Sections);
            }
        }
 private void AddSectionTo2DModel(BuildingStructuralElements.Slab slab, IThermalSection section)
 {
     Model2D.AddModelElement(slab);
 }