private void NextQuestion() { if (answered >= 10 - 1) { Question.Text = "Вы справились с темой!"; /*Answer1.Text = "Ответ 1"; * Answer2.Text = "Ответ 2"; * Answer3.Text = "Ответ 3"; * Answer4.Text = "Ответ 4";*/ Answer1.Hide(); Answer2.Hide(); Answer3.Hide(); Answer4.Hide(); button2.Hide(); ClearRecord(); return; } answered++; GetQuestion(cur_theme - 1); if (cur_theme != 0 && (cur_question != null && cur_isAnswered == true)) { Question.Text = cur_question; cur_isAnswered = false; } }
private void Test_diff_color_Load(object sender, EventArgs e) { label2.Hide(); Answer1.Hide(); Answer2.Hide(); Answer3.Hide(); Answer4.Hide(); button1.Hide(); richTextBox1.Hide(); timer1.Tick += timer1_Tick; timer1.Start(); }
public Training() { InitializeComponent(); Answer1.Hide(); Answer2.Hide(); Answer3.Hide(); Answer4.Hide(); button2.Hide(); Question.Text = ""; }