Exemple #1
0
 private void btnFormatConfig_Click(object sender, EventArgs e)
 {
     if (_formatConfigForm == null)
     {
         _formatConfigForm = new FrmFormatConfig();
     }
     _formatConfigForm.ShowDialog();
 }
Exemple #2
0
 /// <summary>
 /// 采集工作初始化
 /// </summary>
 /// <returns></returns>
 private bool WorkInit()
 {
     if (ckbIsStartClearMessageBox.Checked)
     {
         rtxtMessage.Clear();
     }
     UpdateWorkMessage("采集正在初始化...\n");
     //检查输入是否合法
     if (!CheckInput())
     {
         return(false);
     }
     //先保存配置
     SaveConfig(true);
     _config = FrmFormatConfig.GetConfig();
     if (_config == null)
     {
         MessageBox.Show("html格式化配置不存在,请先设置再开始", "网络采集器", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return(false);
     }
     _task = GetTaskModelFromInput();
     return(true);
 }
 private void btnFormatConfig_Click(object sender, EventArgs e)
 {
     if (_formatConfigForm == null)
         _formatConfigForm = new FrmFormatConfig();
     _formatConfigForm.ShowDialog();
 }