private void NextButton_Click(object sender, RoutedEventArgs e) { //first read the user's answer float userAnswer = float.Parse(AnswerTextBox.Text); //then fire ov the event that te user answered a question UserEvents.OnUserAnsweredQuestion(this, new AnswerEventArgs() { Answer = userAnswer }); //reset the label and textbox and total questions TotalQuestionsLabel.Content = TM.TheTestStats.TotalQuestions; EquationLabel.Content = TM.TheTestStats.CurrentEquation.FullEquation; AnswerTextBox.Clear(); }