Example #1
0
        private void buttonTakeQuiz_Click(object sender, EventArgs e)
        {
            string quizName = listBoxQuizzes.SelectedItem.ToString();

            int quizID = Database.GetQuizID(quizName);

            TakerScreen takerScreen = new TakerScreen(Database.GetQuiz(quizID, quizName));

            takerScreen.Show();
        }
Example #2
0
        private void buttonTakeLocal_Click(object sender, EventArgs e)
        {
            // Launch TakerScreen and open quiz

            // Read from file address textbox
            if (!File.Exists(textboxLocalQuizFileLocation.Text))
            {
                MessageBox.Show("The quiz file \"" + textboxLocalQuizFileLocation.Text + "\" does not exist.");
                return;
            }
            var TakerScreen1 = new TakerScreen(textboxLocalQuizFileLocation.Text);

            TakerScreen1.Show();
        }