Esempio n. 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();
        }
Esempio n. 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();
 }