public downloadImageThread(HashSet<string> urlset, string searchtxt, DocumentDownload dcmtDown) { this.urlset = urlset; this.searchtxt = searchtxt; this.dcmtDown = dcmtDown; }
/// <summary> /// 开始批量下载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void start_tspBtn_Click(object sender, EventArgs e) { updateUserData(); if (setting.Isbaiduimage_pl) { //百度图片已json方式返回所以通过浏览器加载json数据 //后期实现自动解析json try { this.loaddata.Navigate(new Uri(setting.Uritxt)); } catch (System.UriFormatException) { return; } } else { DocumentDownload download = new DocumentDownload(setting); downloadList.Add(download); } }