private void nextBtn_Click(object sender, EventArgs e) { hideAllControl(); ProjectEuler.curQuestion++; string text = ProjectEuler.getCurrentQuestion(); if (text == "") { MessageBox.Show("There is no next question."); } else { hideAllControl(); updateInformation(text); } showAllControl(); }
private void jumpBtn_Click(object sender, EventArgs e) { hideAllControl(); InputBox box = new InputBox(); box.ShowDialog(); string text = ProjectEuler.getCurrentQuestion(); if (text == "") { MessageBox.Show("There is no such question."); } else { updateInformation(text); } showAllControl(); }
public QuestionForm() { InitializeComponent(); // Goto first question updateInformation(ProjectEuler.getCurrentQuestion()); }