Exemple #1
0
        public LiveTrackerSettingsDesignModel(ILiveTrackerSettingsXDocumentHandler xDocumentHandler)
            : base(
                new EventAggregator(),
                xDocumentHandler,
                Stub.Out <IPokerRoomSettingsDetector>(),
                Stub.Out <IHandHistoryFolderAutoDetectResultsViewModel>(),
                Stub.Out <IHandHistoryFolderAutoDetectResultsWindowManager>(),
                Stub.Out <ILayoutAutoConfigurator>(),
                Stub.Out <IPokerRoomInfoLocator>())
        {
            AutoTrack = true;
            ShowLiveStatsWindowOnStartup = false;
            ShowTableOverlay             = true;
            ShowMyStatistics             = true;
            ShowHoleCardsDuration        = 5;

            HandHistoryFilesPaths = new ObservableCollection <string>
            {
                @"C:\Program Files\PokerStars\HandHistory",
                @"C:\Program Files\Full Tilt Poker\HandHistory",
                @"C:\Documents and Settings\Owner.LapThor\Application Data\PokerStars\HandHistory",
            };
        }
        public LiveTrackerSettingsViewModel(
            IEventAggregator eventAggregator,
            ILiveTrackerSettingsXDocumentHandler xDocumentHandler,
            IPokerRoomSettingsDetector autoDetector,
            IHandHistoryFolderAutoDetectResultsViewModel autoDetectResultsViewModel,
            IHandHistoryFolderAutoDetectResultsWindowManager autoDetectResultsWindow,
            ILayoutAutoConfigurator layoutAutoConfigurator,
            IPokerRoomInfoLocator pokerRoomInfoLocator)
        {
            _eventAggregator  = eventAggregator;
            _xDocumentHandler = xDocumentHandler;

            _autoDetector = autoDetector;
            _autoDetectResultsViewModel = autoDetectResultsViewModel;
            _autoDetectResultsWindow    = autoDetectResultsWindow;

            _layoutAutoConfigurator = layoutAutoConfigurator;

            _pokerRoomInfoLocator = pokerRoomInfoLocator;

            ShowHoleCardsDurations = new List <int> {
                0, 3, 5, 10, 15, 20
            };
        }