Exemplo n.º 1
0
 public string DataAdd(MyQstAns mq)
 {
     mqa.Add(mq);
     return "";
 }
Exemplo n.º 2
0
 private void QuizAnswerClick(string SelAnswer)
 {
     if(QuizTimer != null) {
         QuizTimer.Dispose();
         // myQA
         MyQstAns mq = new MyQstAns();
         Quiz q = ShowQuizs[Qcount];
         mq.q = q;
         mq.SelAns = SelAnswer;
         mq.IsCorrect = (SelAnswer == QuizAnswer);
         mq.LimitTime = (double)selfDrawProgressBar1.Value / 100;
         // answer data
         if(q.AData == null) {
             q.AData = new AnswerData();
         }
         q.AData.QstNumber += 1;
         q.AData.AnsNumber += (uint)(mq.IsCorrect ? 1 : 0);
         q.AData.RateChange(mq.IsCorrect);
         // add
         Mqa.DataAdd(mq);
         // if miss quiz
         if(!mq.IsCorrect) {
             // quizmiss show
             QuizMiss();
             return;
         }
     }
     // Deadterm check
     if(!Dt(Mqa)) {
         // end
         練習モードを終了EToolStripMenuItem_Click(null, null);
         return;
     }
     QuizShow();
 }