/// <summary> /// Event handler for clicking the county on the map (left mouse up) /// </summary> /// <param name="sender">County path object</param> public void ClickOnCounty(object sender, EventArgs e) { if (sender is Path countyID) { var county = _countyService.GetCountyByID(countyID.Name); switch (CurrentGameMode) { case GameMode.Info: _infoVM.CurrentCounty = county; break; case GameMode.Quiz: _quizVM.IsThisTheCountyToGuess(county); break; default: break; } } }