private void SetCoverImage() { ImageSearch image_search = new ImageSearch(this.Name, 1, 10); image_search.OnFinished += Image_Search_OnFinished; System.Threading.ThreadPool.QueueUserWorkItem(image_search.Start); }
private void SearchImages(string name, int no_of_results) { ImageSearch image_search = new ImageSearch(name, no_of_results, no_of_results * 4); image_search.OnFinished += image_search_OnFinished; ThreadPool.QueueUserWorkItem(image_search.Start); }