예제 #1
0
파일: Category.cs 프로젝트: nichdu/jeopardy
 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
파일: Category.cs 프로젝트: nichdu/jeopardy
 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
파일: Question.cs 프로젝트: nichdu/jeopardy
 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();
 }