Ejemplo n.º 1
0
        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);
                }
            }
        }
Ejemplo n.º 2
0
        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
            {
            }
        }