示例#1
0
        void NewHandFound(string fullPath, IConvertedPokerHand convertedPokerHand)
        {
            if (!GameControllers.ContainsKey(fullPath))
            {
                if (!_liveTrackerSettings.AutoTrack)
                {
                    return;
                }

                StartTracking(fullPath);
            }

            GameControllers[fullPath].NewHand(convertedPokerHand);
        }
示例#2
0
        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);
        }