public async Task FilterCollectionAsync(FilterScheme filter, IEnumerable rawCollection, IList filteredCollection) { Argument.IsNotNull(() => filter); await filter.EnsureIntegrityAsync(); if (filteredCollection == null) { return; } filter.Apply(rawCollection, filteredCollection); }
private async Task OnEditSchemeExecuteAsync(FilterScheme filterScheme) { await filterScheme.EnsureIntegrityAsync(); var filterSchemeEditInfo = new FilterSchemeEditInfo(filterScheme, RawCollection, AllowLivePreview, EnableAutoCompletion); if (_uiVisualizerService.ShowDialog <EditFilterViewModel>(filterSchemeEditInfo) ?? false) { _filterSchemeManager.UpdateFilters(); ApplyFilter(); } }
private async Task OnEditSchemeExecuteAsync(FilterScheme filterScheme) { await filterScheme.EnsureIntegrityAsync(); var filterSchemeEditInfo = new FilterSchemeEditInfo(filterScheme, RawCollection, AllowLivePreview, EnableAutoCompletion); if (_uiVisualizerService.ShowDialog<EditFilterViewModel>(filterSchemeEditInfo) ?? false) { _filterSchemeManager.UpdateFilters(); ApplyFilter(); } }