Example #1
0
 private void LoadDeck()
 {
     cbPickDeck.Items.Clear();
     foreach (string cardName in _deckToPick.GetCardNames())
     {
         cbPickDeck.Items.Add(cardName);
     }
 }
Example #2
0
        private void DealCard()
        {
            _deck.Deal(1);

            foreach (string cardName in _deck.GetCardNames())
            {
                lblCard.Text = cardName;
            }
            lblDeck.Text = _deck.Count.ToString();
        }
Example #3
0
 private void LoadDeck()
 {
     lbDeck.Items.Clear();
     lbHand.Items.Clear();
     foreach (string cardName in _deck.GetCardNames())
     {
         lbDeck.Items.Add(cardName);
     }
     label1.Text = "Deck (" + lbDeck.Items.Count + " cards)";
     label2.Text = "Hand (" + lbHand.Items.Count + " cards";
     label3.Text = "";
 }