コード例 #1
0
ファイル: HistoryControlVM.cs プロジェクト: akarzazi/SSMSPlus
 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();
 }
コード例 #2
0
        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>();
        }