예제 #1
0
        private void btn_Start_Click(object sender, EventArgs e)
        {
            string bank_id  = getColumn(dgQuestion, 8);
            string score_id = getColumn(dgQuestion, 0);

            DialogResult dr = MessageBox.Show("Are You Sure to Start this Question?", "QUESTION", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dr == DialogResult.Yes)
            {
                FormRun FR = new FormRun(int.Parse(bank_id), int.Parse(score_id));
                FR.ShowDialog();
                this.Close();
            }
        }
예제 #2
0
 private void btnRun_Click(object sender, EventArgs e)
 {
     if (txtTemp2.Text != "")
     {
         Form FR = new FormRun(int.Parse(txtTemp2.Text), 0);
         FR.ShowDialog();
         this.Close();
     }
     else
     {
         MessageBox.Show("Please, Choose the Question Bank to Run...!", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         dgQuestion.Focus();
     }
 }