Esempio n. 1
0
 private void fMain_Load(object sender, EventArgs e)
 {
     try
     {
         Victorina.ReadParam();
         Victorina.ReadMusic();
     }
     catch
     {
         Victorina.WriteParam();
     }
 }
Esempio n. 2
0
 private void btnOK_Click(object sender, EventArgs e)
 {
     Victorina.allDirectories = cbAllDir.Checked;
     Victorina.gameDuration   = Convert.ToInt32(cbGameDuration.Text);
     Victorina.musicDuration  = Convert.ToInt32(cbMusicDuration.Text);
     Victorina.randomStart    = cbRandomStart.Checked;
     Victorina.answerTime     = Convert.ToInt32(cbAnswerTime.Text);
     Victorina.player1Key     = cbPlayer1Key.Text.ToString();
     Victorina.player2Key     = cbPlayer2Key.Text.ToString();
     Victorina.WriteParam();
     this.Hide();
 }