Пример #1
0
        public Control_Hierarchy(View_Main _main, TreeView _tree)
        {
            m_tree       = _tree;
            m_collection = new TreeEntryCollection();

            m_engineObjectsList        = _main.m_Layout.m_ViewPort.m_renderer.m_scene.m_objectManager.m_list;
            m_engineObjectsList.OnAdd += (object sender, EventArgs e) => { Initialize(); };

            Initialize();
        }
Пример #2
0
        TreeEntry RecursiveGetChildren(TreeEntryCollection _collection, TreeEntry _input)
        {
            foreach (var item in _collection.m_Hierarchy)
            {
                if (item.IDparent == _input.ID)
                {
                    _input.Node.Children.Add(RecursiveGetChildren(_collection, item).Node);
                }
            }

            return(_input);
        }