Example #1
0
 /// <summary>Resize the sheet.</summary>
 /// <param name="allocationWidth">The width of the sheet.</param>
 /// <param name="allocationHeight">The height of the sheet.</param>
 public void Resize(int allocationWidth, int allocationHeight)
 {
     if (allocationWidth != Width || allocationHeight != Height)
     {
         ColumnWidths            = null;
         MaximumNumberHiddenRows = 0;
         RedrawNeeded?.Invoke(this, new EventArgs());
     }
 }
Example #2
0
 public void GameStateChanged()
 {
     OnGameStateChanged?.Invoke();
     RedrawNeeded?.Invoke(null);  // should we? just for good measure?
 }
Example #3
0
 public void SignalRedraw(Type filter)
 {
     RedrawNeeded?.Invoke(filter);
 }
Example #4
0
 public void Refresh()
 {
     RedrawNeeded?.Invoke(this, new EventArgs());
 }