public void DeleteAllActiveFilters() { if (System.Windows.MessageBox.Show("Are you sure you want to remove all active filters?", "Remove all active filters", System.Windows.MessageBoxButton.YesNo) == System.Windows.MessageBoxResult.Yes) { ActiveFilters.Clear(); SelectedActiveFilter = -1; } }
public void Clear() { FilteredResults.Clear(); _allResults.Clear(); ActiveFilters.Clear(); foreach (var filter in _allFilters) { filter.Clear(); } }
/// <summary> /// Stop all signal filtering tasks /// </summary> public async Task StopRealTimeSignalProcessingAsync() { foreach (var nextFilter in ActiveFilters) { await nextFilter.Value.StopRealTimeProcessingAsyncAsync(); nextFilter.Value.Log -= OnComponentLog; } ActiveFilters.Clear(); }