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); }
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); }
public Question(Question previous) { _atype = previous._atype; _content = previous._content; _q = previous._q; }
public frmMultipleChoice(Question theQuestion, TimeSpan timeLimit) { currentQuestion = theQuestion; this.timeLimit = timeLimit; InitializeComponent(); }
public frmFillInTheBlank(Question theQuestion, TimeSpan timeLimit) { currentQuestion = theQuestion; this.timeLimit = timeLimit; InitializeComponent(); }