private void UpdateHistoryWindow() { if (historyWindow == null) { return; } if (historyWindow.IsDisposed) { historyWindow = null; return; } historyWindow.UpdateStats(); }
private void historyButton_Click(object sender, EventArgs e) { historyWindow = new HistoryWindow(statsReporter); historyWindow.Show(); }