/// <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()); } }
public void GameStateChanged() { OnGameStateChanged?.Invoke(); RedrawNeeded?.Invoke(null); // should we? just for good measure? }
public void SignalRedraw(Type filter) { RedrawNeeded?.Invoke(filter); }
public void Refresh() { RedrawNeeded?.Invoke(this, new EventArgs()); }