private void EmptyDeck() { var Card = new Card(string.Empty, string.Empty, Deck.Name); CardDatabase.AddCard(Card); Cards.Add(Card); }
private void btn_AddCard_Click(object sender, EventArgs e) { this.label1.Text = ""; CardDB.AddCard(crd); foreach (Card item in CardDB.Cards) { this.label1.Text += item.CardNumber.ToString() + " " + item.Price.ToString() + "\n"; } this.AutoScroll = true; }