예제 #1
0
파일: Sheet.cs 프로젝트: lie112/ApsimX
 /// <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());
     }
 }
예제 #2
0
 public void GameStateChanged()
 {
     OnGameStateChanged?.Invoke();
     RedrawNeeded?.Invoke(null);  // should we? just for good measure?
 }
예제 #3
0
 public void SignalRedraw(Type filter)
 {
     RedrawNeeded?.Invoke(filter);
 }
예제 #4
0
파일: Sheet.cs 프로젝트: lie112/ApsimX
 public void Refresh()
 {
     RedrawNeeded?.Invoke(this, new EventArgs());
 }