Exemple #1
0
        public QuestionForm(MyExamForm.Exam Exam, string QuestionId, string ChoiceId)
        {
            InitializeComponent();

            x = Exam;

            certainQuestion = x.qa.Where(item => item.Id == QuestionId).FirstOrDefault <Question>();
            choiceIds       = ChoiceId;
        }
Exemple #2
0
        public QuestionForm(MyExamForm.Exam Exam)
        {
            InitializeComponent();
            x    = Exam;
            x.qa = ShuffleList(x.qa);

            for (int i = 0; i < x.qa.Count; i++)
            {
                Question qTemp = x.qa[i];
                qTemp.choices = ShuffleList(qTemp.choices);
                x.qa[i]       = qTemp;
            }
        }
Exemple #3
0
 public DisplayResultForm(MyExamForm.Exam Exam)
 {
     InitializeComponent();
     x = Exam;
 }