Exemple #1
0
        private void EndScreen_Load(object sender, EventArgs e)
        {
            if (Client.DetermineGameWinner(CurrentGame) != null)
            {
                winner.Text = "The winner is: " + Client.DetermineGameWinner(CurrentGame).Name;
            }
            else
            {
                winner.Text = "You guys f*****g suck!";
            }

            int i = 0;

            foreach (Player p in CurrentGame.Players)
            {
                LabelList[i].Text     = p.Name;
                LabelList[i + 1].Text = string.Format("{0}", Client.DetermineNoOfCorrectAnswers(CurrentGame));
                i += 2;
            }
        }