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