private bool SeriesSearchFilter(object obj) { AnimeSeriesVM ser = obj as AnimeSeriesVM; if (ser == null) { return(false); } if (SearchResultCount > 100) { return(false); } bool passed = false; passed = GroupSearchFilterHelper.EvaluateSeriesTextSearch(ser, SeriesSearchTextBox.Text.Replace("'", "`"), SerSearchType); if (passed) { SearchResultCount++; } return(passed); }
private bool SeriesSearchFilter(object obj) { AnimeSeriesVM ser = obj as AnimeSeriesVM; if (ser == null) { return(false); } if (SearchResultCount > 100) { return(false); } bool passed = false; System.Windows.Application.Current.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, (Action) delegate() { passed = GroupSearchFilterHelper.EvaluateSeriesTextSearch(ser, SeriesSearchTextBox.Text, SerSearchType); }); if (passed) { SearchResultCount++; } return(passed); }