private void dlgDebugWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { dlgDebugWindow = null; }
private void CreateOrActivateDebugWindow() { if (dlgDebugWindow != null) { dlgDebugWindow.WindowState = FormWindowState.Normal; dlgDebugWindow.Activate(); return; } dlgDebugWindow = new DebugWindow(GameFramework.GameEngine.Players, GameFramework.GameEngine.companies, GameFramework.GameEngine.Passengers); dlgDebugWindow.Closing += dlgDebugWindow_Closing; dlgDebugWindow.Show(); }