Exemple #1
0
 private void Navigate(int countQuestions)
 {
     if (countQuestions > normalQuestions.Count - 1)
     {
         EndOfSecondLevelPage endOfSecondLevelPage = new EndOfSecondLevelPage(engine, currentPlayer.Points, playerName);
         this.NavigationService.Navigate(endOfSecondLevelPage);
     }
     else
     {
         DisplayTextForQuestionAndAnswers(normalQuestions, countQuestions);
     }
 }
Exemple #2
0
        private void SkipQuestionButton(object sender, RoutedEventArgs e)
        {
            this.engine.SkipQuestionHint.Quantity--;

            currentPlayer.Points += normalQuestions[countQuestions].Points;
            pPoints.Text          = currentPlayer.Points.ToString();
            DisplayHints();
            countQuestions++;
            skippedAnswer.Visibility = Visibility.Visible;
            correctAnswer.Visibility = Visibility.Collapsed;
            wrongAnswer.Visibility   = Visibility.Collapsed;

            if (countQuestions > normalQuestions.Count - 1)
            {
                EndOfSecondLevelPage endOfSecondLevelPage = new EndOfSecondLevelPage(engine, currentPlayer.Points, playerName);
                this.NavigationService.Navigate(endOfSecondLevelPage);
            }
            else
            {
                DisplayTextForQuestionAndAnswers(normalQuestions, countQuestions);
            }

            DisplayHints();
        }