Exemplo n.º 1
0
        // F e a t u r e s

        private void LoadObjects()
        {
            AdvTree_Objs.BeginUpdate();
            AdvTree_Objs.Nodes.Clear();

            foreach (var cobj in customObjectCollection.CustomObjects)
            {
                AdvTree_Objs.Nodes.Add(GetNode(cobj));
            }

            AdvTree_Objs.EndUpdate();
        }
Exemplo n.º 2
0
        private void UpdateAllNodes()
        {
            AdvTree_Objs.BeginUpdate();
            updateNodes(AdvTree_Objs.Nodes);
            AdvTree_Objs.EndUpdate();

            void updateNodes(NodeCollection collection)
            {
                foreach (Node n in collection)
                {
                    UpdateNode(n);
                    updateNodes(n.Nodes);
                }
            }
        }