/// <summary> /// Draws cards from a deck and adds them to the deck viewer /// </summary> /// <param name="deck">The deck to draw from</param> /// <param name="numberOfCards">The number of cards to draw</param> public void DrawCards(Deck deck, int numberOfCards) { for (int i = 0; i < numberOfCards; i++) { Card card = deck.DrawCard(); this.AddCard(card); } }
public void AddCards(Deck deck, int numberOfCards) { for (int i = 0; i < numberOfCards; i++) { Card card = deck.DrawCard(); this.AddCard(card, false); } AdjustCards(); }