public void FillUserAnswer(int userId) { var answer = AnswerFiller.GetUserAnswer(QuestionId, userId); if (!answer.Equals(string.Empty)) { for (int i = 0; i < Items.Count; i++) { Items[i].Selected = answer[i].Equals('1'); } } }
public void FillUserAnswer(int userId) { _testTextBox.Text = AnswerFiller.GetUserAnswer(QuestionId, userId); }
public void FillUserAnswer(int userId) { _testDropDownList.SelectedIndex = Convert.ToInt32(AnswerFiller.GetUserAnswer(QuestionId, userId)); }
public void FillCorrectAnswer() { _testTextBox.Text = AnswerFiller.GetCorrectAnswer(QuestionId); }
public void FillCorrectAnswer() { _testDropDownList.SelectedIndex = Convert.ToInt32(AnswerFiller.GetCorrectAnswer(QuestionId)); }