Beispiel #1
0
        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();
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
 public QuestionForm()
 {
     InitializeComponent();
     // Goto first question
     updateInformation(ProjectEuler.getCurrentQuestion());
 }