Exemple #1
0
        /// <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);
        }
Exemple #2
0
        /// <summary>
        /// Returns to menu.
        /// </summary>
        protected virtual void ReturnToMenu()
        {
            var gameMenuViewModel = new GameMenuViewModel();

            this.SwitchWindowContent(gameMenuViewModel);
        }