예제 #1
0
        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');
                }
            }
        }
예제 #2
0
 public void FillUserAnswer(int userId)
 {
     _testTextBox.Text = AnswerFiller.GetUserAnswer(QuestionId, userId);
 }
예제 #3
0
 public void FillUserAnswer(int userId)
 {
     _testDropDownList.SelectedIndex = Convert.ToInt32(AnswerFiller.GetUserAnswer(QuestionId, userId));
 }
예제 #4
0
 public void FillCorrectAnswer()
 {
     _testTextBox.Text = AnswerFiller.GetCorrectAnswer(QuestionId);
 }
예제 #5
0
 public void FillCorrectAnswer()
 {
     _testDropDownList.SelectedIndex = Convert.ToInt32(AnswerFiller.GetCorrectAnswer(QuestionId));
 }