private void loadQuizLog(QuizLogDTO selectedQuizResult)
 {
     QuestionLoaded = false;
     RaisePropertyChanged("QuestionLoaded");
     RaisePropertyChanged("QuestionNotLoaded");
     if (selectedQuizResult == null)
     {
         QuestionLoaded = true;
         RaisePropertyChanged("QuestionLoaded");
         RaisePropertyChanged("QuestionNotLoaded");
         return;
     }
     _resultQuizContext.QuestionLogs.Clear();
     var questionResult = _resultQuizContext.Load(_resultQuizContext.GetStudentQuestionLogQuery(selectedQuizResult.EntityId));
     questionResult.Completed += new EventHandler(questionResult_Completed);
     RaisePropertyChanged("Questions");
 }
 void lastResultLoaded_Completed(object sender, EventArgs e)
 {
     var quizResult = QuizResults.FirstOrDefault();
     if (quizResult == null)
     {
         QuestionLoaded = true;
         RaisePropertyChanged("QuestionLoaded");
         RaisePropertyChanged("QuestionNotLoaded");
         return;
     }
     SelectedQuizResult = quizResult;
 }