Пример #1
0
 private void dlgDebugWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     dlgDebugWindow = null;
 }
Пример #2
0
        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();
        }