private void CheckIfUserIsDoneWithTest() { if (TheTestStats.TotalQuestions <= 0) { //calculate final score float finalScore = (TheTestStats.QuestionsRight * 100 / (TheTestStats.QuestionsRight + TheTestStats.QuestionsWrong)); UserEvents.OnUserFinishedTheTest(this, new FinalScoreEventArgs() { FinalScore = finalScore }); } }