Ejemplo n.º 1
0
 private void barBtnStop_ItemClick(object sender, ItemClickEventArgs e)
 {
     hgzUtilsPool.Stop();
     hgzUtils.Stop();
     pzUtils.Stop();
     wsUtils.Stop();
 }
Ejemplo n.º 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);
     }
 }