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); } }
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(); }