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

            SwitchView();
        }
Beispiel #2
0
        internal FilterViewModel(EnumViewModelType viewModelType, IFilterModelManagerService service)
        {
            Type = viewModelType;
            FilterModelManager = service;

            InitializeFilterModel();
        }
        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();
                }
            });
        }
        internal FilterAdvancedViewModel(IFilterModelManagerService service) :
            base(EnumViewModelType.FilterAdvancedViewModel, service)
        {
            InitializeCollectionViews();
            InitializeCommands();

            EnterValuePopupRequest = new InteractionRequest <INotification>();
        }
Beispiel #5
0
        public FilterStandardView(IFilterModelManagerService service)
        {
            InitializeComponent();

            configurator = new FilterBaseTableConfigurator();

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

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

            InitializeComponent();
        }
 internal FilterDateViewModel(IFilterModelManagerService service) : base(EnumViewModelType.FilteDateViewModel, service)
 {
 }
 internal FilterBoardTextureViewModel(IFilterModelManagerService service) : base(EnumViewModelType.FilterBoardTextureViewModel, service)
 {
     Initialize();
 }
Beispiel #12
0
        public FilterDateView(IFilterModelManagerService service)
        {
            InitializeComponent();

            this.DataContext = new FilterDateViewModel(service);
        }
Beispiel #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)
 {
 }
Beispiel #16
0
 internal FilterHoleCardsViewModel(IFilterModelManagerService service) : base(EnumViewModelType.FilterHoleCardsViewModel, service)
 {
     Init();
 }