public TestPage(TestFile testFile) { InitializeComponent(); // Create the actual test and store the questions in a list // Test test = new Test(); // testQuestion = test.GetTest(Path.Combine(Constants.AppDataPath, testFile.FileName), App.questionOrder, App.termDisplay); testQuestion = AppFunctions.GetTest(Path.Combine(Constants.AppDataPath, testFile.FileName), App.questionOrder, App.termDisplay); // Initialize the results list instead of using Add. This makes changng the answers to questions easier foreach (TestQuestion tq in testQuestion) { resultList.Add(new Result(tq.Question, null, false)); } // Display the test title and the first question testTitle = AppFunctions.TestTitle; PopulateControls(); }