예제 #1
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="label"></param>
 /// <param name="index"></param>
 /// <param name="uniqueId"></param>
 /// <param name="overrideControlPrefix"></param>
 public MatchingPair(string label, int index, string uniqueId, string overrideControlPrefix = null)
     : base()
 {
     this.Label    = label;
     this.Index    = index;
     this.UniqueId = uniqueId;
     if (overrideControlPrefix != null)
     {
         this.ControlPrefix = overrideControlPrefix;
     }
     QuestionAnswerPair = new QuestionAnswerPair(uniqueId, ItemType.Matching, ControlPrefix);
     AnswerLineItem     = new AnswerLineItem(index, uniqueId, ItemType.Matching, ControlPrefix);
     TeacherExplanation = new StudentTeacherExplanation(index, ExplanationType.Teacher, ItemType.Matching, ControlPrefix);
     StudentExplanation = new StudentTeacherExplanation(index, ExplanationType.Student, ItemType.Matching, ControlPrefix);
 }
예제 #2
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="itemType"></param>
 /// <param name="label"></param>
 /// <param name="index"></param>
 /// <param name="uniqueId"></param>
 /// <param name="overrideControlPrefix"></param>
 public AnswerChoice(ItemType itemType, string label, int index, string uniqueId, string overrideControlPrefix = null)
     : base()
 {
     this.ItemType = itemType;
     this.Label    = label;
     this.Index    = index;
     this.UniqueId = uniqueId;
     if (overrideControlPrefix != null)
     {
         this.ControlPrefix = overrideControlPrefix;
     }
     AnswerContent      = new QuestionAnswerContent(label, index, uniqueId, ContentType.AnswerChoice, ItemType, ControlPrefix);
     AnswerLineItem     = new AnswerLineItem(index, uniqueId, ItemType, ControlPrefix);
     TeacherExplanation = new StudentTeacherExplanation(index, ExplanationType.Teacher, ItemType, ControlPrefix);
     StudentExplanation = new StudentTeacherExplanation(index, ExplanationType.Student, ItemType, ControlPrefix);
     HotSpot            = new WebElementWrapper(ByHotSpot());
 }