예제 #1
0
파일: AllForm.cs 프로젝트: sishui198/C-
 private void barBtnStop_ItemClick(object sender, ItemClickEventArgs e)
 {
     hgzUtilsPool.Stop();
     hgzUtils.Stop();
     pzUtils.Stop();
     wsUtils.Stop();
 }
예제 #2
0
 //停止自动抓取
 private void barBtnStop_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         hgzUtilsPool.Stop();
         hgzUtils.Stop();
         this.barBtnItemStart.Enabled = true;
         this.barBtnStop.Enabled      = false;
         this.Invoke(new Action(() => { this.CrawlerLog.Items.Add(string.Format("{0} 停止抓取  ", DateTime.Now.ToString("G"))); }));
     }
     catch (Exception ex)
     {
         MessageBox.Show("抓取停止异常:" + ex.Message, "异常", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }