Exemple #1
0
 /// <summary>
 /// Shows the High Scores
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void highScoresBtn_Click(object sender, EventArgs e)
 {
     using (HighScores hs = new HighScores())
     {
         hs.ShowDialog();
     }
 }
Exemple #2
0
        /// <summary>
        /// Opens the Scores Window
        /// </summary>
        /// <param name="sender">Click this.</param>
        /// <param name="e">Event this.</param>
        private void scoresButton_Click(object sender, RoutedEventArgs e)
        {
            HighScores highScores = new HighScores();

            this.Visibility = Visibility.Collapsed;
            highScores.ShowDialog();
            this.Visibility = Visibility.Visible;
        }