private void DisplayResultOfSearch(ResultOfSearch resultOfSearch) { if (InvokeRequired) { Action <ResultOfSearch> delegateFunc = DisplayResultOfSearch; object[] args = new Object[1] { resultOfSearch }; Invoke(delegateFunc, args); return; } lstSearchResult.Items.Clear(); lstSearchResult.Items.AddRange(resultOfSearch.Content.ToArray()); }
private void SutOnSearchIsFinished(object sender, SearchEventArgs searchEventArgs) { _resultOfSearch = searchEventArgs.ResultOfSearch; }