public void CodeAfterAnswerButtonPress(mfrm_VocTrainerForm form)
 {
     form.SetLabelColor();
     form.SetPointLabel(pointsInstance.Right);
     GUIGame.Next();
     form.SetAnswersAndVocable();
 }
 public void ShowResultDialog(mfrm_VocTrainerForm form)
 {
     if (form.numberOfVocable > 0)
     {
         double percent = 0;
         if (pointsInstance.Right > 0)
         {
             percent = Math.Round((Convert.ToDouble(pointsInstance.Right) / form.numberOfVocable) * 100, 0);
         }
         MessageBox.Show("Sie haben " + pointsInstance.Right + " von " + form.numberOfVocable + " Fragen richtig beantwortet."
                         + Environment.NewLine + "Das sind " + percent + "%.",
                         "Ergebnis", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 public void Skip(mfrm_VocTrainerForm form)
 {
     GUIGame.Next();
     form.SetAnswersAndVocable();
 }
 public void Exit(mfrm_VocTrainerForm form)
 {
     ShowResultDialog(form);
     form.ResetNumberOfVocable();
     form.ShowMainMenu();
 }
Ejemplo n.º 5
0
 public void SetVTForm(mfrm_VocTrainerForm form)
 {
     VTForm = form;
 }