Exemple #1
0
 void Image_Search_OnFinished(object source, ImageSearchEventArgs e)
 {
     image = e.Results[0];
     if (OnCoverSearchFinished != null)
     {
         List <System.Drawing.Image> temp_list = new List <System.Drawing.Image>(1);
         temp_list.Add(image);
         OnCoverSearchFinished(this, new ImageSearchEventArgs(temp_list));
     }
 }
 void image_search_OnFinished(object source, ImageSearchEventArgs e)
 {
     images = e.Results;
     Dispatcher.Invoke(new Action(() => { ShowImages(e.Results); }));
 }
 void book_OnCoverSearchFinished(object source, ImageSearchEventArgs e)
 {
     Dispatcher.Invoke(new Action(() => { this.imgCover.Source = Utilities.BitmapSourceFromImage(e.Results[0]); }));
 }