Beispiel #1
0
        private void Seiseki()
        {
            double validity = (corCnt / queMax) * 100;

            TxtAnswer.Enabled = true;
            LblMondai.Text    = "";
            TxtQue.AppendText("お疲れ様です。" + "\r\n");
            TxtQue.AppendText("正解数は" + corCnt + "です。" + "\r\n");
            TxtQue.AppendText("正答率は" + validity + "です。" + "\r\n");
        }
Beispiel #2
0
 private void AnswerCheck()
 {
     //解答が合っているとき
     if (noC == Int64.Parse(TxtAnswer.Text))
     {
         TxtQue.AppendText("〇");
         corCnt++;
     }
     //解答が間違っているとき
     else
     {
         TxtQue.AppendText("×");
     }
     //解答の表示
     TxtQue.AppendText(LblMondai.Text + TxtAnswer.Text + "\r\n");
 }