private void CreateMultiChoiceQuestion() { string minuteStr = _isHalfHour ? ":30" : ":00"; MultiChoiceQuestionModelCreator questionCreator = new MultiChoiceQuestionModelCreator(_hour.ToString() + minuteStr, false, false); foreach (var item in _intHourList.OrderBy(h => h)) { questionCreator.AddChoice(item.ToString() + minuteStr, item == _hour); } _takeTestModelCreator.AddMultiChoiceQuestion(questionCreator.GetQuestion(), QuestionViewTypeEnum.Clock); }
private void CreateMultiChoiceQuestion() { MultiChoiceQuestionModelCreator questionCreator = new MultiChoiceQuestionModelCreator(_hour.ToString() + ":" + _minute.ToString().PadLeft(2, '0'), false, false); foreach (var item in _intTimeList.OrderBy(h => h)) { int hour = item / 100; int minute = item % 100; questionCreator.AddChoice(hour.ToString() + ":" + minute.ToString().PadLeft(2, '0'), item == _hour * 100 + _minute); } _takeTestModelCreator.AddMultiChoiceQuestion(questionCreator.GetQuestion(), QuestionViewTypeEnum.Clock); }