Ejemplo n.º 1
0
 private void NextQuestionOrFinish()
 {
     quiz.nextQuestion();
     if (!quiz.IsDone())
     {
         timerStarted = false;
         view.ShowQuestion(quiz.Answers, quiz.QuestionNumber, quiz.QuestionCount, config.TimeoutSeconds);
         view.ShowJoker(true);
     }
     else
     {
         // finished: save to highscore list and show result
         highscores.AddEntry(teamName, quiz.Score);
         view.ShowResult(quiz.Score);
     }
 }