private void fMain_Load(object sender, EventArgs e) { try { Victorina.ReadParam(); Victorina.ReadMusic(); } catch { Victorina.WriteParam(); } }
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(); }