public HistoryControlVM(QueryItemRepository itemsRepository, IVersionProvider versionProvider, IServiceCacheIntegration serviceCacheIntegration) { _itemsRepository = itemsRepository; _versionProvider = versionProvider; _serviceCacheIntegration = serviceCacheIntegration; RequestItemsCommand = new AsyncCommand(FuncHelper.DebounceAsync(ExecuteRequestItemsAsync, 100), CanExecuteSubmit, this.HandleError); ViewLoadedCommand = new AsyncCommand(OnViewLoadedAsync, CanExecuteSubmit, this.HandleError); OpenScriptCmd = new Command <SearchFilterResultVM>(OpenScript, () => true, HandleError); InitDefaults(); }
public SchemaSearchControlVM(IDbIndexer dbIndexer, SchemaSearchRepository schemaSearchRepository, IObjectExplorerInteraction objectExploreInteraction) { _objectExploreInteraction = objectExploreInteraction; _dbIndexer = dbIndexer; _schemaSearchRepository = schemaSearchRepository; ReIndexDbCmd = new AsyncCommand(OnReIndexDbAsync, CanExecuteSubmit, HandleError); ExecuteSearchCmd = new AsyncCommand(FuncHelper.DebounceAsync(ExecuteSearchAsync, 100), CanExecuteSubmit, HandleError); LocateItemCmd = new AsyncCommand <SearchFilterResultVM>(LocateAsync, (_) => true, HandleError); CreateMatchOnCombo(); CreateObjectsCombo(); SchemaObjectsVM = new ComboCheckBoxViewModel <string>(); }