Beispiel #1
0
 void InitializePlayMode() 
 {
     qmaster = null;
     qmarker = null;
     ReadQuestionFile();
     SetNextQuestion();
     SetQuestionUI();
     RefreshResultList();
 }
Beispiel #2
0
        public void ShowResult(QuestionMarker qmarker)
        {
            var result = qmarker.GetTotalResult();
            countLabel.Text = string.Format("{0:N0}", result.Count);
            accLabel.Text = string.Format("{0:N2}", result.Accuracy);
            wpmLabel.Text = string.Format("{0:N2}", result.Wpm);

            myresult = result;
        }
Beispiel #3
0
 void SetNextQuestion()
 {
     var nextq = qmaster.GetNextQuestion();
     if (qmarker == null)
     {
         qmarker = new QuestionMarker();
     }
     qmarker.SetNextQuestion(nextq);
     qmarker.Wpm = mp.Wpm;
 }