private void button1_Click(object sender, EventArgs e) { cnt++; if (Int32.Parse(UserAnswer.Text) == l.QuestionAnswer) { markCnt += l.Percent.Value; mark.Text = markCnt.ToString(); UserAnswer.Text = ""; } else { UserAnswer.Text = ""; } if (cnt <= 5) { l = bl.exerciseReturnTen(); while (LT.Contains(l.QuestionText)) { l = bl.exerciseReturnTen(); } LT.Add(l.QuestionText); exercise.Text = l.QuestionText; } else if (cnt > 5 && cnt <= 9) { l = bl.exerciseReturnSix(); while (LS.Contains(l.QuestionText)) { l = bl.exerciseReturnSix(); } LS.Add(l.QuestionText); exercise.Text = l.QuestionText; } else { button1.Visible = false; americanStart.Visible = true; UserAnswer.Visible = false; exercise.Text = ""; } }
private void вопросыИПредложенияToolStripMenuItem_Click(object sender, EventArgs e) { Questions ownedForm = new Questions(); ownedForm.Show(); }
private void Button4_Click(object sender, EventArgs e) { Questions newForm = new Questions(); newForm.Show(); }