void InitializePlayMode() { qmaster = null; qmarker = null; ReadQuestionFile(); SetNextQuestion(); SetQuestionUI(); RefreshResultList(); }
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; }
void SetNextQuestion() { var nextq = qmaster.GetNextQuestion(); if (qmarker == null) { qmarker = new QuestionMarker(); } qmarker.SetNextQuestion(nextq); qmarker.Wpm = mp.Wpm; }