コード例 #1
0
 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");
 }
コード例 #2
0
 void lastResultLoaded_Completed(object sender, EventArgs e)
 {
     var quizResult = QuizResults.FirstOrDefault();
     if (quizResult == null)
     {
         QuestionLoaded = true;
         RaisePropertyChanged("QuestionLoaded");
         RaisePropertyChanged("QuestionNotLoaded");
         return;
     }
     SelectedQuizResult = quizResult;
 }