示例#1
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            //Save Answer
            SaveAnswer();

            sAnswer = "";
            //Prompt for Next Question
            iCurrentQuestion++;
            btnBack.Visible = true;

            if (iCurrentQuestion == tQuestionAnswer.Rows.Count)
            {
                btnNext.Text = "Start CESD";
            }
            else if (iCurrentQuestion > tQuestionAnswer.Rows.Count)
            {
                frmCESD frmNext = new frmCESD(tQuestionAnswer);
                frmNext.Show();

                this.Hide();
            }

            ShowQuestion();
        }
示例#2
0
        private void btnNext_Click(object sender, EventArgs e)
        {
            //Save Answer
            SaveAnswer();

            sAnswer = "";
            //Prompt for Next Question
            iCurrentQuestion++;
            btnBack.Visible = true;

            if (iCurrentQuestion == tQuestionAnswer.Rows.Count)
            {
                btnNext.Text = "Start CESD";

            }
            else if (iCurrentQuestion > tQuestionAnswer.Rows.Count)
            {
                frmCESD frmNext = new frmCESD(tQuestionAnswer);
                frmNext.Show();

                this.Hide();

            }

            ShowQuestion();
        }