private void playStart_Click(object sender, EventArgs e) { int n = int.Parse(numberQuestion.Text); string fileName = getFileName(); database = new TrueFalse(fileName); database.Load(fileName); numberQuestion.Text = (int.Parse(numberQuestion.Text) + 1).ToString(); tboxQuestion.Text = database[(int)n].text; availabilityChange(); }
private void miNewGame_Click(object sender, EventArgs e) { int n = int.Parse(numberQuestion.Text); string fileName = getFileName(); database = new TrueFalse(fileName); database.Load(fileName); numberQuestion.Text = "1"; tboxQuestion.Text = database[(int)n].text; count = 0; }