Esempio n. 1
0
        private void Btn_PlayNextRound_Click(object sender, RoutedEventArgs e)
        {
            if (!_tournament.IsFinished)
            {
                Grid_PlayGame.Visibility     = Visibility.Visible;
                Btn_PlayNextRound.Visibility = Visibility.Collapsed;

                _tournamentData.GetGamesToPlay(_tournament);
                var game         = _tournamentData.GamesToPlay[0];
                var firstPlayer  = game.FirstPlayer;
                var secondPlayer = game.SecondPlayer;

                _printer.EnterPlayerScore(firstPlayer);
                _printer.EnterPlayerScore(secondPlayer);
            }
            else
            {
                _printer.PrintChampion(_tournament.Champion);
            }
        }