/// <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(); }
/// <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(); }