/// <summary> /// Handles the click on the action button /// </summary> private void ActionButtonClick() { if (GameManager.Current.CurrentGame.CurrentGameState == Game.GameState.Running) { GameManager.Current.CancelGame(); } var gameMenuViewModel = new GameMenuViewModel(); this.SwitchWindowContent(gameMenuViewModel); }
/// <summary> /// Returns to menu. /// </summary> protected virtual void ReturnToMenu() { var gameMenuViewModel = new GameMenuViewModel(); this.SwitchWindowContent(gameMenuViewModel); }