private void MainForm_Load(object sender, EventArgs e) { LabelsColor(indexlabels, 0); SetQuestionEvent?.Invoke(this, new NewQuestionEventArgs() { newQuestion = true }); }
public void Answer_True() { label.BackColor = Color.Green; ++indexlabels; LabelsColor(indexlabels - 1, indexlabels); NewQuestion(); // Thread.Sleep(2000); SetQuestionEvent?.Invoke(this, new NewQuestionEventArgs() { newQuestion = false }); }
private void EndGame() { button_50x50.BackColor = Color.Transparent; button_call.BackColor = Color.Transparent; button_hall.BackColor = Color.Transparent; button_50x50.Enabled = true; button_call.Enabled = true; button_hall.Enabled = true; NewQuestion(); LabelsColor(indexlabels, 0); indexlabels = 0; SetQuestionEvent?.Invoke(this, new NewQuestionEventArgs() { newQuestion = true }); }