Пример #1
0
 public void InsertNode(NewTreeNode node)
 {
     if (this.children == null)
     {
         this.children = new List <NewTreeNode> ();
     }
     children.Add(node);
     node.parent = this;
 }
Пример #2
0
 public void OpenAllNode(NewTreeNode node)
 {
     node.isOpen = true;
     if (node.children != null && node.children.Count > 0)
     {
         for (int i = 0; i < node.children.Count; i++)
         {
             OpenAllNode(node.children[i]);
         }
     }
 }