void NewHandFound(string fullPath, IConvertedPokerHand convertedPokerHand) { if (!GameControllers.ContainsKey(fullPath)) { if (!_liveTrackerSettings.AutoTrack) { return; } StartTracking(fullPath); } GameControllers[fullPath].NewHand(convertedPokerHand); }
public IGamesTracker StartTracking(string fullPath) { if (GameControllers.ContainsKey(fullPath)) { PublishUserWarningMessage(fullPath); return(this); } IGameController gameController = SetupGameController(fullPath); GameControllers.Add(fullPath, gameController); _newHandsTracker.TrackFolder(new FileInfo(fullPath).DirectoryName); _newHandsTracker.ProcessHandHistoriesInFile(fullPath); return(this); }