Пример #1
0
 bool UpdateNextCellForResponderChain(int fromPosition)
 {
     for (focusedCellIndex = fromPosition; focusedCellIndex < Cells.Length; focusedCellIndex++)
     {
         var cell = Cells [focusedCellIndex].Cell;
         if (PathComponentCells.Contains(cell) && cell.Enabled)
         {
             return(true);
         }
     }
     return(false);
 }
Пример #2
0
 bool UpdatePreviousCellForResponderChain(int fromPosition)
 {
     for (focusedCellIndex = fromPosition; focusedCellIndex >= 0; focusedCellIndex--)
     {
         var cell = Cells [focusedCellIndex].Cell;
         if (PathComponentCells.Contains(cell) && cell.Enabled)
         {
             return(true);
         }
     }
     return(false);
 }