Exemple #1
0
        /// <summary>
        /// Opens a new game, closes the current game in progress.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void mnuNew_Click(object sender, RoutedEventArgs e)
        {
            StartScreen startWindow = new StartScreen();

            startWindow.Show();
            this.Close();
        }
Exemple #2
0
        /// <summary>
        /// Opens up the start form so the player can play again
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnPlay_Click(object sender, RoutedEventArgs e)
        {
            StartScreen startScreen = new StartScreen();

            startScreen.Show();
            this.Close();
        }