Beispiel #1
0
        public static void UpdateScore(Game game, FrmGame Frm)
        {
            Player p1 = game.Players[0];
            Player p2 = game.Players[1];

            Color ColorP1 = p1.GetPlayerColor();
            Color ColorP2 = p2.GetPlayerColor();

            Frm.LblPlayer1Wins_updateColor(ColorP1);
            Frm.LblPlayer1Wins_updateText(p1.Wins);
            Frm.LblPlayer2Wins_updateColor(ColorP2);
            Frm.LblPlayer2Wins_updateText(p2.Wins);
        }
Beispiel #2
0
        public static void LoadHeadings(Game game, FrmGame Frm)
        {
            Player p1 = game.Players[0];
            Player p2 = game.Players[1];

            string NameP1  = p1.Name;
            Color  ColorP1 = p1.GetPlayerColor();

            string NameP2  = p2.Name;
            Color  ColorP2 = p2.GetPlayerColor();

            Frm.LblPlayer1_update(NameP1, ColorP1);
            Frm.LblPlayer2_update(NameP2, ColorP2);
            Frm.LblPlayer1Wins_updateText(p1.Wins);
            Frm.LblPlayer2Wins_updateText(p2.Wins);
            Frm.LblPlayer1Wins_updateColor(ColorP1);
            Frm.LblPlayer2Wins_updateColor(ColorP2);

            Frm.LblMessage_update("", Color.Black);
            Frm.LblMessage_hide();
        }