private void fMain_Load(object sender, EventArgs e) { ClassStatistic.ReadStatistic(); ClassStatistic.ReadParam(); ClassStatistic.ReadLayout(); NewGame(); }
private void button1_Click(object sender, EventArgs e) { ClassStatistic.newbie = rbNewbie.Checked; ClassStatistic.amateur = rbAmateur.Checked; ClassStatistic.professional = rbProfessional.Checked; ClassStatistic.wunderkind = rbWunderkind.Checked; ClassStatistic.two = rbTwo.Checked; ClassStatistic.playerOne = tbPlayerOne.Text; ClassStatistic.playerTwo = tbPlayerTwo.Text; ClassStatistic.WriteParam(); if (rbX.Checked) { ClassStatistic.sign = true; } else { ClassStatistic.sign = false; } this.Hide(); }
private void fMain_FormClosing(object sender, FormClosingEventArgs e) { ClassStatistic.WriteStatistic(); ClassStatistic.WriteLayout(); }