Example #1
0
        private void AddButton_Click(object sender, EventArgs e)
        {
            timer_quiz.Enabled = true;
            QuizPage quizPage = new QuizPage();

            quizPage.Show();
        }
Example #2
0
 private void EditButton_Click(object sender, EventArgs e)
 {
     foreach (ListViewItem lv in quizListView.SelectedItems)
     {
         QuizPage.isEdit    = true;
         timer_quiz.Enabled = true;
         QuizPage quizPage = new QuizPage(lv);
         quizPage.Show();
     }
 }
Example #3
0
 private void Btn_takeQuiz_Click(object sender, EventArgs e)
 {
     if (quizListView.SelectedItems[0].SubItems[5].Text.Equals(string.Empty))
     {
         timer_quiz.Enabled = true;
         foreach (ListViewItem lv in quizListView.SelectedItems)//take quiz button click
         {
             QuizPage.isTakeQuiz = true;
             QuizPage quizPage = new QuizPage(lv);
             quizPage.Show();
         }
     }
     else
     {
         DialogResult result = MessageBox.Show("You have already taken this quiz!", "Quiz Already Taken", MessageBoxButtons.OK);
     }
 }