protected void ViewSpatialStructure() { IfcProject project = Model.IfcProject; if (project != null) { ChildrenPath = "Children"; List <SpatialViewModel> svList = new List <SpatialViewModel>(); foreach (var item in project.GetSpatialStructuralElements()) { var sv = new SpatialViewModel(item, null); svList.Add(sv); } HierarchySource = svList; foreach (var child in svList) { LazyLoadAll(child); } } }
private void ViewSpatialStructure() { IfcProject project = Model.IfcProject as IfcProject; if (project != null) { this.ChildrenBinding = new Binding("Children"); List <SpatialViewModel> svList = new List <SpatialViewModel>(); foreach (var item in project.GetSpatialStructuralElements()) { var sv = new SpatialViewModel(item, null); svList.Add(sv); } this.HierarchySource = svList; foreach (var child in svList) { LazyLoadAll(child); } } else //Load any spatialstructure { } }