Пример #1
0
 void soulstoneService_AdvancedSearchCompleted(object sender, Soulstone.SL.SoulstoneService.SearchCompletedEventArgs e)
 {
     SoulstoneService.SearchCompleted -= new EventHandler <SearchCompletedEventArgs>(soulstoneService_AdvancedSearchCompleted);
     if (e.Error == null)
     {
         lstResult.Items.Clear();
         lstResult.Height    = 260;
         spResult.Visibility = Visibility.Visible;
         SearchResultSet searchResultSet = e.Result;
         foreach (SearchResult sr in searchResultSet.SearchResults.Values)
         {
             lstResult.Items.Add(new ResultView(sr));
         }
         tbStatus.Text = string.Format("Total {0} archivos encontrados ({1} segundos)", searchResultSet.SearchResults.Count, searchResultSet.SearchSeconds);
     }
     else
     {
         tbStatus.Text = string.Format("Ocurrió un error inesperado: {0}", e.Error.Message);
     }
 }
Пример #2
0
 void soulstoneService_SearchCompleted(object sender, Soulstone.SL.SoulstoneService.SearchCompletedEventArgs e)
 {
     SoulstoneService.SearchCompleted -= new EventHandler <SearchCompletedEventArgs>(soulstoneService_SearchCompleted);
     ShowResults(e);
 }