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;
     }
 }
Example #2
0
 public void Clear()
 {
     FilteredResults.Clear();
     _allResults.Clear();
     ActiveFilters.Clear();
     foreach (var filter in _allFilters)
     {
         filter.Clear();
     }
 }
Example #3
0
        /// <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();
        }