static void Main() { Console.CursorVisible = false; GuiController guiController = new GuiController(); GameController myGame = new GameController(); do { if (guiController.ShowMenu()) { myGame.StartGame(); } else { break; } }while (guiController.ShowMenu() == true); ExitWindow exitWindow = new ExitWindow(); exitWindow.Render(); // GameWindow gameWindow = new GameWindow(); // gameWindow.Render(); ///CreditWindow creditWindow = new CreditWindow(); // creditWindow.Render(); }
/// <summary> /// click on exit /// </summary> /// <param name="sender">object sender</param> /// <param name="e">eventargs e</param> public void Exit_Click(object sender, RoutedEventArgs e) { Grid_generate.Children.Clear(); ExitWindow exit_w = new ExitWindow(m_view, m_model); exit_w.Show(); }
private void ExitButton_Click(object sender, RoutedEventArgs e) { ExitWindow exitWindow = new ExitWindow { Owner = Window.GetWindow(this) }; exitWindow.ShowDialog(); }
public GuiController() { _menuWindow = new MenuWindow(); _creditWindow = new CreditWindow(); _exitWindow = new ExitWindow(); _gameOverWindow = new GameOverWindow(); _highScoreWindow = new HighScoreWindow(); }
public void GameExit() { _currentGameState = eGameState.EXIT; GameObject _ExitGO = Instantiate(_preExitWnd); _ExitWnd = _ExitGO.GetComponent <ExitWindow>(); _ExitWnd.gameObject.SetActive(true); }
public void ShowExitWindow(DispatcherTimer timer) { this.timer = timer; timer.IsEnabled = !timer.IsEnabled; ExitWindow exitWindow = new ExitWindow(this); this._exitWindow = exitWindow; exitWindow.Show(); }