protected override void LoadCardPictures() { if (cardListToDisplay != null) { // Generate the card picture boxes for each card in the hand foreach (Card c in cardListToDisplay) { SelectableCardPictureBox pictureBox = new SelectableCardPictureBox(c); pictureBox.CardSelected += new SelectableCardPictureBox.CardSelectedHandler(pictureBox_CardSelected); pictureBox.HighlightTransparency = HighlightTransparency; pictureBox.HighlightColor = HighlightColor; cardPictures.Add(pictureBox); } } }
protected override void LoadCardPictures() { if (cardListToDisplay != null) { // Generate the card picture boxes for each card in the hand foreach (Card c in cardListToDisplay) { SelectableCardPictureBox pictureBox = new SelectableCardPictureBox(c); pictureBox.CardSelected += new SelectableCardPictureBox.CardSelectedHandler(pictureBox_CardSelected); pictureBox.HighlightTransparency = HighlightTransparency; pictureBox.HighlightColor = HighlightColor; cardPictures.Add(pictureBox); } } }