private void StartNewGame() { MatchDetails = SelectedGame.Name; _currentGameService = _dartGameFactory(SelectedGame.ClassId); _currentStatisticsService = _statisticsFactory(SelectedGame.ClassId); PlayerTemplate = (DataTemplate)Application.Current.Resources[SelectedGame.PlayerTemplateName]; InitaliseFlags(); // Hide all the darts MessageBus.Current.SendMessage(Visibility.Collapsed); ClearDarts(); InitialiseAllPlayers(); SetCurrentPlayer(_nextUpIndex); RotateStartingPlayer(); AnalyseScoreForHints(); SetLeaderMessage(); }
public OnScoreUpdatedArgs(IDartGame currentGame) { CurrentGame = currentGame; }