public PlayerControl(PlayerObject player) { gameObject = player; InitializeComponent(); this.nameLabel.Text = player.Name; powerLabel.Text = PowerLabels.GetText(player); }
public CardControl(Card card) { gameObject = card; InitializeComponent(); this.nameLabel.Text = card.Name; this.rarityColorBorder.BackColor = RarityLabels.GetColor(card.Rarity); typeLabel.Text = TypeLabels.GetText(card.Type); rarityLabel.UseCustomForeColor = true; rarityLabel.ForeColor = RarityLabels.GetColor(card.Rarity); rarityLabel.Text = RarityLabels.GetText(card.Rarity); descriptionLabel.Text = card.Description; powerLabel.Text = PowerLabels.GetText(card); }