private void OnAppearingPage() { _numerator.MoveNext(); _currentQuestion = _numerator.Current; _isAppearing = true; _currentAnswerViewModels = _currentQuestion.Answers.Select( item => new AnswerViewModel { Text = item.Text, QuestionType = _currentQuestion.Type, IsTrue = item.isTrue }); StartTimer(); }
private void NextClickCommandExecute() { Scoring(); if (_numerator.MoveNext()) { _currentQuestion = _numerator.Current; OnPropertyChanged("QuestionText"); _currentAnswerViewModels = _currentQuestion.Answers.Select( item => new AnswerViewModel { Text = item.Text, QuestionType = _currentQuestion.Type, IsTrue = item.isTrue }); OnPropertyChanged("Answers"); } else { ResultScore = _score; } OnPropertyChanged("GroupQuestionIsVisible"); OnPropertyChanged("EntryIsVisible"); }