예제 #1
0
 public CellChangedEventArgs(CellMetrics metrics, int cell, T oldValue, T value)
 {
     Cell = cell;
     metrics.GetLocation(cell, out Location);
     OldValue = oldValue;
     Value    = value;
 }
예제 #2
0
 public T this[int cell] => metrics.GetLocation(cell, out Point location) ? this[location] : null;
예제 #3
0
 public OccupierRemovedEventArgs(CellMetrics metrics, int cell, T occupier)
 {
     Cell = cell;
     metrics.GetLocation(cell, out Location);
     Occupier = occupier;
 }
예제 #4
0
 public bool Add(int cell, T overlapper) => metrics.GetLocation(cell, out Point location) ? Add(location, overlapper) : false;