Exemple #1
0
 public TreeNodeEnumerator(TreeNodeView items, int position)
     : this(items)
 {
     if (position < 0 || position >= this.items.Count)
     {
         return;
     }
     this.current  = this.items[position];
     this.position = (object)position;
 }
Exemple #2
0
 public TreeNodeEnumerator(TreeNodeView items, RadTreeNode node)
     : this(items)
 {
     if (this.binaryMode)
     {
         this.position = (object)this.items.rbTree.Find(node);
         if (this.position == null)
         {
             return;
         }
         this.current = node;
     }
     else
     {
         int num = this.items.IndexOf(node);
         if (num < 0)
         {
             return;
         }
         this.current  = node;
         this.position = (object)num;
     }
 }
Exemple #3
0
 public void Dispose()
 {
     this.items    = (TreeNodeView)null;
     this.position = (object)null;
     this.current  = (RadTreeNode)null;
 }
Exemple #4
0
 public TreeNodeEnumerator(TreeNodeView items)
 {
     this.items      = items;
     this.binaryMode = !(this.items.view is List <RadTreeNode>);
     this.Reset();
 }