示例#1
0
 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());
 }
示例#2
0
 private void SutOnSearchIsFinished(object sender, SearchEventArgs searchEventArgs)
 {
     _resultOfSearch = searchEventArgs.ResultOfSearch;
 }