public MainMenuViewModel()
		{
			Groups = new BindableCollection<MenuGroup>();

			if (!Windows.ApplicationModel.DesignMode.DesignModeEnabled)
			{
				_running = IoC.Get<RunExperimentViewModel>();
				_runThresholdTest = IoC.Get<RunThresholdTestViewModel>();
				_permutations = IoC.Get<PermutationViewModel>();
				_nbsmConfig = IoC.Get<NBSmConfigViewModel>();

				_eventAggregator = IoC.Get<IEventAggregator>();
				_navService = IoC.Get<INavigationService>();
				_regionService = IoC.Get<IRegionService>();
				_subjectService = IoC.Get<ISubjectDataService>();
				_subjectFilterService = IoC.Get<ISubjectFilterService>();
				_computeService = IoC.Get<IComputeService>();

				var regionsVM = IoC.Get<RegionsViewModel>();

				Groups.Add(new MenuGroup { Title = "Source", Items = { regionsVM, IoC.Get<SubjectsViewModel>(), IoC.Get<GroupsViewModel>() } });
				Groups.Add(new MenuGroup { Title = "Config", Items = { _permutations, _nbsmConfig } });
				Groups.Add(new MenuGroup { Title = "Compute", Items = { _runThresholdTest, _running } });
				Groups.Add(new MenuGroup { Title = "Global", Items = { IoC.Get<GlobalStrengthViewModel>() } });
				Groups.Add(new MenuGroup { Title = "Component", Items = { IoC.Get<IntermodalViewModel>(), IoC.Get<IntraSummaryViewModel>()/*, new MenuItem { Title = "Associations" },*/ } });
				Groups.Add(new MenuGroup { Title = "Nodal", Items = { IoC.Get<NodalStrengthDataTypeViewModel>() } });
				Groups.Add(new MenuGroup { Title = "Edge", Items = { IoC.Get<EdgeSignificanceViewModel>() } });
			}
		}
 public StrengthViewModel(IEventAggregator eventAggregator, IComputeService computeService, IRegionService regionService, IAppPreferences appPreferences)
 {
     _eventAggregator = eventAggregator;
     _computeService = computeService;
     _regionService = regionService;
     _appPreferences = appPreferences;
 }
示例#3
0
 public StrengthViewModel(IEventAggregator eventAggregator, IComputeService computeService, IRegionService regionService, IAppPreferences appPreferences)
 {
     _eventAggregator = eventAggregator;
     _computeService  = computeService;
     _regionService   = regionService;
     _appPreferences  = appPreferences;
 }
示例#4
0
        public MainViewModel(IEventAggregator eventAggregator, IComputeService computeService)
        {
            _eventAggregator = eventAggregator;
            _computeService  = computeService;

            StrengthByDataType = new BindableCollection <StrengthViewModel>();

            this.DisplayName = "MEASURES";
            _eventAggregator.Subscribe(this);
        }
示例#5
0
        public MainViewModel(ISubjectService subjectService, IComputeService computeService, IEventAggregator eventAggregator)
        {
            _subjectService  = subjectService;
            _computeService  = computeService;
            _eventAggregator = eventAggregator;

            this.DisplayName = "FILTERS";

            Groups    = new BindableCollection <GroupViewModel>();
            DataTypes = new BindableCollection <DataTypeViewModel>();

            _eventAggregator.Subscribe(this);
        }
示例#6
0
        public MainViewModel(IAppPreferences appPreferences, IRegionService regionService, ISubjectService subjectService, IComputeService computeService, IEventAggregator eventAggregator)
        {
            _appPreferences  = appPreferences;
            _regionService   = regionService;
            _subjectService  = subjectService;
            _computeService  = computeService;
            _eventAggregator = eventAggregator;

            this.DisplayName = "REGIONS";

            Regions = new BindableCollection <RegionViewModel>();

            _eventAggregator.Subscribe(this);
        }
示例#7
0
        public LiveTilesViewModel(IEventAggregator eventAggregator, IComputeService computeService, IRegionService regionService, ISubjectService subjectService)
        {
            _eventAggregator = eventAggregator;
            _computeService  = computeService;
            _regionService   = regionService;
            _subjectService  = subjectService;

            Permutations = _appPreferences.Permutations;

            Groups = "None";
            PermutationsComplete = 0;

            _eventAggregator.Subscribe(this);
        }
示例#8
0
		public MainViewModel(IAppPreferences appPreferences, IRegionService regionService, ISubjectService subjectService, IComputeService computeService, IEventAggregator eventAggregator)
		{
			_appPreferences = appPreferences;
			_regionService = regionService;
			_subjectService = subjectService;
			_computeService = computeService;
			_eventAggregator = eventAggregator;

			this.DisplayName = "REGIONS";

			Regions = new BindableCollection<RegionViewModel>();

			_eventAggregator.Subscribe(this);
		}
示例#9
0
        public UpdateService(IFileService dataServices,
                             IScrapService scrapDataService,
                             IComputeService computeDataService,
                             IDictionariesService dictionaryService,
                             IEventAggregator eventAggregator)
        {
            _degreeOfParallelism = 40;

            _eventAggregator    = eventAggregator;
            _dataServices       = dataServices;
            _dictionaryService  = dictionaryService;
            _scrapDataService   = scrapDataService;
            _computeDataService = computeDataService;

            Horses  = new List <LoadedHorse>();
            Jockeys = new List <LoadedJockey>();
            Races   = new List <RaceDetails>();
        }
 public ProbabilityService(IComputeService computeService, IRepository <Number> numberRepository, ISetDataService setDataService)
 {
     _computeService   = computeService;
     _numberRepository = numberRepository;
     _setDataService   = setDataService;
 }
示例#11
0
 public ResultService(IComputeService service)
 {
     this._service = service;
 }
示例#12
0
 public ValuesController(IComputeService computeService)
 {
     _computeSevice = computeService;
 }