Esempio n. 1
0
 private void fMain_Load(object sender, EventArgs e)
 {
     ClassStatistic.ReadStatistic();
     ClassStatistic.ReadParam();
     ClassStatistic.ReadLayout();
     NewGame();
 }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
 private void fMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     ClassStatistic.WriteStatistic();
     ClassStatistic.WriteLayout();
 }