Esempio n. 1
0
 private void barBtnStop_ItemClick(object sender, ItemClickEventArgs e)
 {
     hgzUtilsPool.Stop();
     hgzUtils.Stop();
     pzUtils.Stop();
     wsUtils.Stop();
 }
Esempio n. 2
0
 //停止自动抓取
 private void barBtnStop_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         pzUtils.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);
     }
 }