|
@@ -77,8 +77,13 @@
|
|
|
|
|
|
Console.WriteLine($"AnswerID: {_survey.SurveyItems[_currentQuestionID].AnswerID}.");
|
|
|
|
|
|
- _currentQuestionPosition++;
|
|
|
- _currentQuestionID = _survey.SurveyItemsSorted.FirstOrDefault(i => i.Value.Position == _currentQuestionPosition).Key;
|
|
|
+ if (_currentQuestionPosition < _survey.SurveyItems.Count)
|
|
|
+ {
|
|
|
+ _currentQuestionPosition++;
|
|
|
+ _currentQuestionID = _survey.SurveyItemsSorted.FirstOrDefault(i => i.Value.Position == _currentQuestionPosition).Key;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ Close();
|
|
|
}
|
|
|
|
|
|
string PositionToLetter(int position)
|