// Saves Card Stats to CardSave.xml private void button3_Click_1(object sender, EventArgs e) { if (!NotAlloweed()) { if (label3.Visible) { Tcard = new Treasure(textBox1.Text, richTextBox1.Text, textBox3.Text, textBox2.Text); Utilities.SerializeXML <Treasure>(textBox1.Text.ToString(), Tcard, @"CardDeck/TreasureDeck/"); MessageBox.Show(textBox1.Text.ToString() + " Has been Save to CardSaved"); } else if (label4.Visible) { Mcard = new Mystery(textBox4.Text, richTextBox2.Text, textBox6.Text, textBox7.Text); Utilities.SerializeXML <Mystery>(textBox4.Text.ToString(), Mcard, @"CardDeck/MysteryDeck/"); MessageBox.Show(textBox4.Text.ToString() + " Has been Save to CardSaved"); } } // Clears all the Boxes textBox4.Clear(); richTextBox2.Clear(); textBox6.Clear(); textBox7.Clear(); textBox3.Clear(); richTextBox1.Clear(); textBox1.Clear(); textBox2.Clear(); }
public CardList(Mystery Mcard, Treasure Tcard) { }