예제 #1
0
파일: Test.xaml.cs 프로젝트: k0stya/quizApp
 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
     }
 }
예제 #2
0
파일: Test.xaml.cs 프로젝트: k0stya/quizApp
        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;
        }
예제 #3
0
파일: Test.xaml.cs 프로젝트: k0stya/quizApp
 void log_Completed(object sender, EventArgs e)
 {
     currentQuestion = GetNextQuestion();
 }