Example #1
0
 private void ucSearchResult_addItem(SearchResultItem item)
 {
     if (this.Dispatcher.Thread != System.Threading.Thread.CurrentThread)
     {
         ucSearchResult_addItem_Callback bR = new ucSearchResult_addItem_Callback(ucSearchResult_addItem);
         this.Dispatcher.Invoke(bR, new Object[] { item });
         return;
     }
     //
     ucSearchResult.addItem(item);
 }
Example #2
0
 private void ucSearchResult_addItem(SearchResultItem item)
 {
     if (this.Dispatcher.Thread != System.Threading.Thread.CurrentThread) {
         ucSearchResult_addItem_Callback bR = new ucSearchResult_addItem_Callback(ucSearchResult_addItem);
         this.Dispatcher.Invoke(bR, new Object[] { item });
         return;
     }
     //
     ucSearchResult.addItem(item);
 }