/// <summary>
 /// View Model for <see cref="GamePage"/> that controls the flow of the game.
 /// </summary>
 public GameViewModel()
 {
     OptionCommand  = new RelayParameterCommand((parameter) => AnswerQuestion((bool)parameter));
     questions      = (saveFileHandler.DeserializeQuestions()).Questions;
     activeQuestion = questions[0];
     GenerateText();
 }
 /// <summary>
 /// Check if there were some questions serialized.
 /// </summary>
 private void CheckForFile()
 {
     if (fileHandler.DoesFileExist())
     {
         Save save = fileHandler.DeserializeQuestions();
         areQuestionsLoaded = true;
         InformationText    = $"We've found {save.Questions.Count} previously loaded questions!";
     }
 }