コード例 #1
0
 private void MainForm_AnswerEvent(object sender, AnswerEventArgs e)
 {
     gamerService.AddPoints(e.num);
     mainForm.SetGamer(gamerService.GetGamer());
     if (gamerService.GetGamer().NumPoint == 1000000)
     {
         mainForm.WinGame();
     }
     if (e.answer.IsCorrect)
     {
         mainForm.Answer_True();
     }
     else
     {
         mainForm.GameOver();
     }
 }