private void OnSearchComplete(IEnumerable<SearchResult> results) { var handler = SearchComplete; if(handler != null && results != null && results.Any()) { var args = new SearchCompleteEventArgs(); args.Results = results.ToList(); handler(this, args); } }
private void OnSearchComplete(IEnumerable <SearchResult> results) { var handler = SearchComplete; if (handler != null && results != null && results.Any()) { var args = new SearchCompleteEventArgs(); args.Results = results.ToList(); handler(this, args); } }
private void SearchComplete(object sender, SearchCompleteEventArgs e) { _model.SearchResults.AddResults(e.Results); }