//button click that opens the SetATest window for the user lecturer private void BtSetTest_Click(object sender, RoutedEventArgs e) { SetATest st = new SetATest(currentUser); st.Show(); this.Close(); }
//This method displays displays a question and its options to a student based on the current question number public void DisplayCurrentQuestion(int i) { SetATest st = new SetATest(currentUser); st.ClearAll(); rtQuestion.Document.Blocks.Clear(); rtQuestion.Document.Blocks.Add(new Paragraph(new Run(testQuestions[i - 1].Test_Question))); tbA.Text = testQuestions[i - 1].Option_A; tbB.Text = testQuestions[i - 1].Option_B; tbC.Text = testQuestions[i - 1].Option_C; tbD.Text = testQuestions[i - 1].Option_D; }