예제 #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();
        }