private void RedrawDeck(int DeckNumber) { if (DeckNumber == 1) { deck1ListBox.Items.Clear(); foreach (string cardName in deck1.GetCardNames()) { deck1ListBox.Items.Add(cardName); } deck1Label.Text = "Deck #1 (" + deck1.Count + " cards)"; } else { deck2ListBox.Items.Clear(); foreach (string cardName in deck2.GetCardNames()) { deck2ListBox.Items.Add(cardName); } deck2Label.Text = "Deck #2 (" + deck2.Count + " cards)"; } }
public IEnumerable <string> GetCardNames() { return(cards.GetCardNames()); }