示例#1
0
 /* This method will load the card pictures (if available) */
 protected virtual void LoadCardPictures()
 {
     if (cardListToDisplay != null)
     {
         // Generate the card picture boxes for each card in the hand
         foreach (Card c in cardListToDisplay)
         {
             CardPictureBox pictureBox = new CardPictureBox(c);
             cardPictures.Add(pictureBox);
         }
     }
 }
示例#2
0
 /* This method will load the card pictures (if available) */
 protected virtual void LoadCardPictures()
 {
     if (cardListToDisplay != null)
     {
         // Generate the card picture boxes for each card in the hand
         foreach (Card c in cardListToDisplay)
         {
             CardPictureBox pictureBox = new CardPictureBox(c);
             cardPictures.Add(pictureBox);
         }
     }
 }