private void button3_Click_1(object sender, EventArgs e) { AssessmentSerialization <Heros> .Serialize("CurrentPlayer", SI.currentHero); AssessmentSerialization <Heros> .Serialize("CurrentPlayer2", SI.currentHero2); AssessmentSerialization <Enemy> .Serialize("CurrentEnemy", SI.currentDrogoon); AssessmentSerialization <string> .Serialize("TextLog", textBox6.Text); textBox6.SelectionStart = textBox6.Text.Length; textBox6.ScrollToCaret(); comboBox1.SelectionStart = comboBox1.SelectedIndex; comboBox2.SelectionStart = comboBox2.SelectedIndex; }
void SetUp() { AssessmentSerialization <List <Heros> > .Serialize("ListofPlayersDefualt", SI.Heroz); }