示例#1
0
        private async void SearchPackageInActivePackageSource(string searchText)
        {
            var    filterItem = _filter.SelectedItem as FilterItem;
            Filter filter     = filterItem != null ?
                                filterItem.Filter :
                                Filter.All;

            PackageLoaderOption option = new PackageLoaderOption(filter, IncludePrerelease);
            var loader = new PackageLoader(
                option,
                Model.Context.PackageManager,
                Model.Context.Projects,
                _activeSource,
                searchText);
            await loader.Initialize();

            _packageList.Load(loader);
        }
        private async void SearchPackageInActivePackageSource(string searchText)
        {
            var filterItem = _filter.SelectedItem as FilterItem;
            Filter filter = filterItem != null ?
                filterItem.Filter :
                Filter.All;

            PackageLoaderOption option = new PackageLoaderOption(filter, IncludePrerelease);
            var loader = new PackageLoader(
                option,
                Model.Context.PackageManager,
                Model.Context.Projects,
                _activeSource,
                searchText);
            await loader.Initialize();
            _packageList.Load(loader);
        }