Example #1
0
 public SettingsHyperViewModel(HyperjumpRepo hyperjumpRepo)
 {
     _hyperjumpRepo = hyperjumpRepo;
     DisplayName    = "Hyper";
     Items          = new BindableCollection <HyperJumpSettingViewModel>();
     InitialiseItems();
 }
Example #2
0
        public TestViewModel(HyperjumpRepo hyperjumpRepo, IRepository <Domain.Console> consoleRepo, IAppServices appServices)
        {
            _log             = appServices.Log;
            _hyperjumpRepo   = hyperjumpRepo;
            _consoleRepo     = consoleRepo;
            _previousResults = new List <FolderMatches>();
            MatchedItems     = new BindableCollection <HyperJumpFolderViewModel>();
//            MatchedItems = new ObservableCollection<HyperJumpFolderViewModel>();
            _scanner = new Scanner(hyperjumpRepo, appServices);
            Rescan();

            _textInput
            .Throttle(TimeSpan.FromMilliseconds(300))
            .Do(s => Debug.WriteLine(s))
            .Do(s => CancelCurrentScan())
            .SubscribeOn(NewThreadScheduler.Default)
            .ObserveOn(SynchronizationContext.Current)
            .Subscribe(ParseCommand);
        }
Example #3
0
 public Scanner(HyperjumpRepo hyperjumpRepo, IAppServices appServices)
 {
     _log           = appServices.Log;
     _hyperjumpRepo = hyperjumpRepo;
 }