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