Exemplo n.º 1
0
 public void Reset()
 {
     this.stage = !this.filterByPinPosition || this.filteredPinPosition != PinnedRowPosition.Bottom ? (!this.filterByPinPosition || this.filteredPinPosition != PinnedRowPosition.None ? ViewInfoTraverser.Stages.TopPinnedSystemRows : ViewInfoTraverser.Stages.TopSystemRows) : ViewInfoTraverser.Stages.BottomPinnedRows;
     this.SetCollectionForStage(false);
     this.collection = (ITraversable)null;
     this.index      = -1;
     this.current    = (GridViewRowInfo)null;
 }
Exemplo n.º 2
0
 public ViewInfoEnumeratorPosition(
     GridViewInfo viewInfo,
     ViewInfoTraverser.Stages stage,
     ITraversable collection,
     int index,
     PinnedRowPosition pinPosition,
     SystemRowPosition rowPosition,
     PinnedRowPosition filteredPinPoisition,
     bool filterByPinPosition)
 {
     this.viewInfo             = viewInfo;
     this.stage                = stage;
     this.collection           = collection;
     this.index                = index;
     this.pinPosition          = pinPosition;
     this.rowPosition          = rowPosition;
     this.filteredPinPoisition = filteredPinPoisition;
     this.filterByPinPosition  = filterByPinPosition;
 }
Exemplo n.º 3
0
 public bool MoveToEnd()
 {
     this.stage = !this.filterByPinPosition || this.filteredPinPosition != PinnedRowPosition.Top ? (!this.filterByPinPosition || this.filteredPinPosition != PinnedRowPosition.None ? ViewInfoTraverser.Stages.BottomPinnedSystemRows : ViewInfoTraverser.Stages.BottomSystemRows) : ViewInfoTraverser.Stages.TopPinnedRows;
     this.SetCollectionForStage();
     this.pinPosition = PinnedRowPosition.Bottom;
     this.rowPosition = SystemRowPosition.Bottom;
     do
     {
         ;
     }while (this.Collection.Count == 0 && this.ChangeCollectionBackward());
     if (this.Collection.Count > 0)
     {
         this.index   = this.Collection.Count - 1;
         this.current = (GridViewRowInfo)this.Collection[this.index];
         if (!this.OnRowVisible())
         {
             return(this.MovePrevious());
         }
         return(true);
     }
     this.index   = -1;
     this.current = (GridViewRowInfo)null;
     return(false);
 }