private void dlgScoreboard_Closing(object sender, System.ComponentModel.CancelEventArgs e) { dlgScoreboard = null; }
private void CreateOrActivateScoreboard() { if (dlgScoreboard != null) { dlgScoreboard.WindowState = FormWindowState.Normal; dlgScoreboard.Activate(); return; } dlgScoreboard = new PlayerScore(GameFramework); dlgScoreboard.SetupGame(); dlgScoreboard.Closing += dlgScoreboard_Closing; dlgScoreboard.Show(this); }