예제 #1
0
        /// <summary>
        /// Initialization of the New Game Button
        /// </summary>
        /// <param name="sender">Click</param>
        /// <param name="e">Event</param>
        private void button_Click(object sender, RoutedEventArgs e)
        {
            Difficulty select = new Difficulty();

            this.Visibility = Visibility.Collapsed;
            select.ShowDialog();
            this.Close();
        }
예제 #2
0
        /// <summary>
        /// Resets the game button.
        /// </summary>
        /// <param name="sender">Click management</param>
        /// <param name="e">Event management</param>
        private void BtnResetClick(object sender, RoutedEventArgs e)
        {
            this.mainForm.Close();
            Difficulty NewGame = new Difficulty();

            this.Close();
            NewGame.ShowDialog();
        }