Example #1
0
 void questionLoadResult_Completed(object sender, EventArgs e)
 {
     if (questions.Any())
     {
         currentQuestion = GetNextQuestion();
         if (quizResult == null)
         {
             var loadUserResult = userService.Load(userService.GetUserByAspUserNameQuery(WebContext.Current.User.DisplayName));
             loadUserResult.Completed += new EventHandler(loadUserResult_Completed);
             userSet = loadUserResult.Entities;
         }
     }
     else
     {
         //TODO: Redirect away
     }
 }
Example #2
0
        void answersLoadResult_Completed(object sender, EventArgs e)
        {
            if (!answers.Any(a => currentQuestion.QuestionId == a.QuestionId))
            {
                currentQuestion = GetNextQuestion();
                return;
            }

            labelQuestionText.Text = currentQuestion.Text;
            dataGrdiAnswers.ItemsSource = answers;
        }
Example #3
0
 void log_Completed(object sender, EventArgs e)
 {
     currentQuestion = GetNextQuestion();
 }