//This function will check if the list has been received correctly from the function underneath. private void listStartedCallbackHandler(Model.QuestionList list, HttpStatusCode status) { if (status != HttpStatusCode.OK) { MessageBox.Show("Er ging wat mis met het fetchen van de lijst, probeer het opnieuw."); } else { mainForm.getQuestionList().Id = list.Id; mainForm.getQuestionList().Name = list.Name; mainForm.getQuestionList().Ended = list.Ended; mainForm.getQuestionList().Position = list.Position; mainForm.getQuestionList().Ended = false; QuestionFactory questionFactory = new QuestionFactory(); questionFactory.FindAll(mainForm.getView().GetHandler(),addQuestionsCallbackHandler); } }