public SettingsHyperViewModel(HyperjumpRepo hyperjumpRepo) { _hyperjumpRepo = hyperjumpRepo; DisplayName = "Hyper"; Items = new BindableCollection <HyperJumpSettingViewModel>(); InitialiseItems(); }
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); }
public Scanner(HyperjumpRepo hyperjumpRepo, IAppServices appServices) { _log = appServices.Log; _hyperjumpRepo = hyperjumpRepo; }