Exemple #1
0
        /// <summary>
        /// Displays a dialog with the winner's name.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void GameIsOver(object sender, GameOverEventArgs e)
        {
            var menu = new GameOverWindow(e.Winner.Name);

            Opacity = 0.5;
            menu.ShowDialog();
        }
Exemple #2
0
 /// <summary>
 /// Displays a dialog with the winner's name.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void GameIsOver(object sender, GameOverEventArgs e)
 {
     var menu = new GameOverWindow(e.Winner.Name);
     Opacity = 0.5;
     menu.ShowDialog();
 }