Пример #1
0
 public void AddQuestion(Enums.AnswerType type, string content, string question)
 {
     int i = 0;
     while (_questions[i] != null)
     {
         ++i;
     }
     _questions[i] = new Question(type, content, question);
 }
Пример #2
0
 public void AddQuestion(string type, string content, string question)
 {
     Enums.AnswerType atype = Enums.AnswerType.Text;
     switch (type)
     {
         case "AUDIO":
             atype = Enums.AnswerType.Audio;
             break;
         case "IMAGE":
             atype = Enums.AnswerType.Image;
             break;
         case "STRING":
             atype = Enums.AnswerType.Text;
             break;
     }
     int i = 0;
     while (_questions[i] != null)
     {
         ++i;
     }
     _questions[i] = new Question(atype, content, question);
 }
Пример #3
0
 public Question(Question previous)
 {
     _atype = previous._atype;
     _content = previous._content;
     _q = previous._q;
 }
Пример #4
0
 public frmMultipleChoice(Question theQuestion, TimeSpan timeLimit)
 {
     currentQuestion = theQuestion;
     this.timeLimit  = timeLimit;
     InitializeComponent();
 }
Пример #5
0
 public frmFillInTheBlank(Question theQuestion, TimeSpan timeLimit)
 {
     currentQuestion = theQuestion;
     this.timeLimit  = timeLimit;
     InitializeComponent();
 }