public QuestionForm(MyExamForm.Exam Exam, string QuestionId, string ChoiceId) { InitializeComponent(); x = Exam; certainQuestion = x.qa.Where(item => item.Id == QuestionId).FirstOrDefault <Question>(); choiceIds = ChoiceId; }
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; } }
public DisplayResultForm(MyExamForm.Exam Exam) { InitializeComponent(); x = Exam; }