Пример #1
0
        internal FilterHandGridViewModel(IFilterModelManagerService service) : base(Model.Enums.EnumViewModelType.FilterHandGridViewModel, service)
        {
            FilterHoleCards     = new FilterHoleCardsView(service);
            FilterOmahaHandGrid = new FilterOmahaHandGridView(service);

            SwitchView();
        }
Пример #2
0
        internal FilterViewModel(EnumViewModelType viewModelType, IFilterModelManagerService service)
        {
            Type = viewModelType;
            FilterModelManager = service;

            InitializeFilterModel();
        }
Пример #3
0
        internal TournamentViewModel()
        {
            reportStatusService = ServiceLocator.Current.GetInstance <IReportStatusService>();

            InitializeChartSeries();

            GoldenBracelet = new Bracelet {
                PlaceNumber = 1
            };
            SilverBracelet = new Bracelet {
                PlaceNumber = 2
            };
            BronzeBracelet = new Bracelet {
                PlaceNumber = 3
            };

            BraceletTournamentClickCommand = new RelayCommand(BraceletTournamentClick);

            filterModelManagerService = ServiceLocator.Current.GetInstance <IFilterModelManagerService>(FilterServices.Main.ToString());

            eventAggregator = ServiceLocator.Current.GetInstance <IEventAggregator>();
            eventAggregator.GetEvent <TournamentDataUpdatedEvent>().Subscribe(x => Update());
            eventAggregator.GetEvent <BuiltFilterChangedEvent>()
            .Subscribe(e =>
            {
                if (e.AffectedFilter.Contains(EnumFilterType.Tournament))
                {
                    updateIsRequired = true;
                    Update();
                }
            });
        }
Пример #4
0
        internal FilterAdvancedViewModel(IFilterModelManagerService service) :
            base(EnumViewModelType.FilterAdvancedViewModel, service)
        {
            InitializeCollectionViews();
            InitializeCommands();

            EnterValuePopupRequest = new InteractionRequest <INotification>();
        }
Пример #5
0
        public FilterStandardView(IFilterModelManagerService service)
        {
            InitializeComponent();

            configurator = new FilterBaseTableConfigurator();

            DataContext = new FilterStandardViewModel(service);
            configurator.ConfigureTable(diagram, viewModel, 6);
        }
Пример #6
0
 public FilterQuickView(IFilterModelManagerService service)
 {
     DataContext = new FilterQuickViewModel(service);
     InitializeComponent();
 }
Пример #7
0
        public FilterBoardTextureView(IFilterModelManagerService service)
        {
            this.DataContext = new FilterBoardTextureViewModel(service);

            InitializeComponent();
        }
Пример #8
0
 internal FilterQuickViewModel(IFilterModelManagerService service) : base(EnumViewModelType.FilterQuickViewModel, service)
 {
     InitializeBindings();
 }
Пример #9
0
        public FilterHandActionView(IFilterModelManagerService service)
        {
            this.DataContext = new FilterHandActionViewModel(service);

            InitializeComponent();
        }
Пример #10
0
 internal FilterDateViewModel(IFilterModelManagerService service) : base(EnumViewModelType.FilteDateViewModel, service)
 {
 }
 internal FilterBoardTextureViewModel(IFilterModelManagerService service) : base(EnumViewModelType.FilterBoardTextureViewModel, service)
 {
     Initialize();
 }
Пример #12
0
        public FilterDateView(IFilterModelManagerService service)
        {
            InitializeComponent();

            this.DataContext = new FilterDateViewModel(service);
        }
Пример #13
0
 public FilterAdvancedView(IFilterModelManagerService service)
 {
     InitializeComponent();
     DataContext = new FilterAdvancedViewModel(service);
 }
 internal FilterHandActionViewModel(IFilterModelManagerService service) : base(EnumViewModelType.FilterHandActionViewModel, service)
 {
 }
 internal FilterOmahaHandGridViewModel(IFilterModelManagerService service) : base(EnumViewModelType.FilterOmahaHandGridViewModel, service)
 {
 }
Пример #16
0
 internal FilterHoleCardsViewModel(IFilterModelManagerService service) : base(EnumViewModelType.FilterHoleCardsViewModel, service)
 {
     Init();
 }