Beispiel #1
0
 public MyTreeNode(MyUlTreeView myPowerTree)
 {
     this.ViewState = new StateBag();
     this.depth     = -1;
     this.nodes     = null;
     this.tree      = myPowerTree;
 }
Beispiel #2
0
 private void FillBoundChildrenRecursive(IHierarchicalEnumerable hEnumerable, MyTreeNodeCollection nodeCollection)
 {
     if (hEnumerable != null)
     {
         foreach (object obj2 in hEnumerable)
         {
             IHierarchyData hierarchyData = hEnumerable.GetHierarchyData(obj2);
             MyTreeNode     child         = new MyTreeNode(this);
             nodeCollection.Add(child);
             child.Bind(hierarchyData);
             if (((this.MaxDataBindDepth < 0) || (child.Depth != this.MaxDataBindDepth)) && ((hierarchyData != null) && hierarchyData.HasChildren))
             {
                 IHierarchicalEnumerable children = hierarchyData.GetChildren();
                 this.FillBoundChildrenRecursive(children, child.ChildNodes);
             }
         }
     }
 }
Beispiel #3
0
 public MyTreeNode()
 {
     this.ViewState = new StateBag();
     this.depth     = -1;
     this.nodes     = null;
 }