Ejemplo n.º 1
0
        void ShowKingdom(Kingdom kingdom)
        {
            KingdomPanel.Controls.Clear();
            KingdomPanel.Controls.Add(KingdomLabel);

            for (int i = 0; i < kingdom.Count(); i++)
            {
                KingdomPanel.Controls.Add(new Label
                {
                    Text      = kingdom[i].ToString(),
                    Location  = new Point(3, 38 + i * 20),
                    Size      = new Size(142, 17),
                    Anchor    = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right,
                    BackColor = kingdom[i].Card.ToBackColor(),
                    TextAlign = ContentAlignment.MiddleCenter,
                });
            }
        }