Exemplo n.º 1
0
 public PokerTableStatisticsViewModelSut(
     ISettings settings,
     IDimensionsViewModel dimensions,
     IConstructor <IPlayerStatisticsViewModel> playerStatisticsViewModelMake,
     IDetailedStatisticsAnalyzerViewModel detailedStatisticsAnalyzerViewModel,
     IActiveAnalyzablePlayersSelector activePlayersSelector,
     IFilterPopupViewModel filterPopupViewModel)
     : base(settings, dimensions, playerStatisticsViewModelMake, detailedStatisticsAnalyzerViewModel, activePlayersSelector, filterPopupViewModel)
 {
 }
        public PokerTableStatisticsViewModel(
            ISettings settings,
            IDimensionsViewModel dimensions,
            IConstructor <IPlayerStatisticsViewModel> playerStatisticsViewModelMake,
            IDetailedStatisticsAnalyzerViewModel detailedStatisticsAnalyzerViewModel,
            IActiveAnalyzablePlayersSelector activePlayersSelector,
            IFilterPopupViewModel filterPopupViewModel)
        {
            _settings = settings;
            _playerStatisticsViewModelMake = playerStatisticsViewModelMake;
            DetailedStatisticsAnalyzer     = detailedStatisticsAnalyzerViewModel;

            _activePlayersSelector = activePlayersSelector;

            FilterPopup = filterPopupViewModel;

            Dimensions = dimensions.InitializeWith(settings.RetrieveRectangle(DimensionsKey, new Rectangle(0, 0, 600, 400)));

            Players = new ObservableCollection <IPlayerStatisticsViewModel>();
        }
        public RepositoryPlayersStatisticsViewModel(
            IRepository repository,
            IConstructor <IPlayerStatistics> playerStatisticsMake,
            IPlayerStatisticsUpdater playerStatisticsUpdater,
            IPlayerStatisticsViewModel playerStatisticsViewModel,
            IDetailedStatisticsAnalyzerViewModel detailedStatisticsAnalyzerViewModel,
            IActiveAnalyzablePlayersSelector activePlayersSelector,
            IFilterPopupViewModel filterPopupViewModel)
        {
            _repository                = repository;
            _playerStatisticsMake      = playerStatisticsMake;
            _playerStatisticsUpdater   = playerStatisticsUpdater;
            _playerStatisticsViewModel = playerStatisticsViewModel;
            DetailedStatisticsAnalyzer = detailedStatisticsAnalyzerViewModel;
            _activePlayersSelector     = activePlayersSelector;
            FilterPopup                = filterPopupViewModel;

            PlayerIdentities = new List <IPlayerIdentity>(_repository.RetrieveAllPlayerIdentities().OrderBy(pi => pi.Name));

            RegisterEvents();

            HeaderInfo = "Main";
        }
Exemplo n.º 4
0
 public RepositoryPlayersStatisticsViewModelSut(IRepository repository, IConstructor <IPlayerStatistics> playerStatisticsMake, IPlayerStatisticsUpdater playerStatisticsUpdater, IPlayerStatisticsViewModel playerStatisticsViewModel, IDetailedStatisticsAnalyzerViewModel detailedStatisticsAnalyzerViewModel, IActiveAnalyzablePlayersSelector activePlayersSelector, IFilterPopupViewModel filterPopupViewModel)
     : base(repository, playerStatisticsMake, playerStatisticsUpdater, playerStatisticsViewModel, detailedStatisticsAnalyzerViewModel, activePlayersSelector, filterPopupViewModel)
 {
 }