Ejemplo n.º 1
0
 void InitializePlayMode()
 {
     qmaster = null;
     qmarker = null;
     ReadQuestionFile();
     SetNextQuestion();
     SetQuestionUI();
     RefreshResultList();
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
        void SetNextQuestion()
        {
            var nextq = qmaster.GetNextQuestion();

            if (qmarker == null)
            {
                qmarker = new QuestionMarker();
            }
            qmarker.SetNextQuestion(nextq);
            qmarker.Wpm = mp.Wpm;
        }