private void OnUnloadQuestion(UnloadQuestionMessage message)
 {
     foreach (var result in CommandResults)
     {
         result.Deactivate();
     }
 }
 private void OnUnloadQuestion(UnloadQuestionMessage message)
 {
     foreach (var result in CommandResults)
     {
         result.Deactivate();
     }
 }
 private void OnUnloadQuestion(UnloadQuestionMessage obj)
 {
     if (QuestionGroupList.All(group => group.Questions.All(question => question.IsAnswered)))
     {
         MessengerInstance.Send(new RoundEndedMessage());
     }
 }
Exemple #4
0
 private void OnUnloadQuestion(UnloadQuestionMessage obj)
 {
     if (_currentQuestion > _superRoundQuestionGroup.Questions.Count() - 1)
     {
         OnRoundEnded(null);
     }
     else
     {
         Question question = _superRoundQuestionGroup.Questions.ElementAtOrDefault(_currentQuestion++);
         Messenger.Default.Send(new LoadQuestionMessage(question));
     }
 }
 private void OnUnloadQuestion(UnloadQuestionMessage obj)
 {
     if (!IsSkipRound)
     {
         if (QuestionGroupList.All(group => group.Questions.All(question => question.IsAnswered)))
         {
             MessengerInstance.Send(new RoundEndedMessage());
         }
     }
     else
     {
         if (QuestionGroupList.Any(group => group.Questions.Any(question => question.IsAnswered)))
         {
             MessengerInstance.Send(new RoundEndedMessage());
         }
     }
 }
 private void OnUnloadQuestion(UnloadQuestionMessage obj)
 {
     Model = null;
     GoToNextStateCommand = null;
 }
 private void OnUnloadQuestion(UnloadQuestionMessage obj)
 {
     if (_currentQuestion > _superRoundQuestionGroup.Questions.Count() - 1)
     {
         OnRoundEnded(null);
     }
     else
     {
         Question question = _superRoundQuestionGroup.Questions.ElementAtOrDefault(_currentQuestion++);
         Messenger.Default.Send(new LoadQuestionMessage(question));
     }
 }
 private void OnUnloadQuestion(UnloadQuestionMessage obj)
 {
     Model = null;
     GoToNextStateCommand = null;
 }