protected async Task GetMathQuiz() { mathQuestion = await MathQuizService.GetMathQuestion(MathTopic, MathDifficulty); isSelectQuiz = true; StateHasChanged(); }
public void StartGame() { mathQuizService = new MathQuizService(GameMode, PlayerName); PlayerScore = 0; lblScore.Text = $"Score: {PlayerScore.ToString()}"; newQuiz(); timer1.Start(); }