private void 创建进程() { try { _B命令行.创建进程(_进程标识); _进程已创建 = true; } catch (Exception ex) { _异常输出缓存.AppendLine("创建进程失败: " + ex.Message); } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); this.do导出.Click += Do导出_Click; this.do清空.Click += Do清空_Click; this.do滚屏.Click += Do滚屏_Click; this.Disposed += (sender1, e1) => { _B命令行.正常输出 -= _B命令行_正常输出; _B命令行.异常输出 -= _B命令行_异常输出; _B命令行.结束进程(_进程标识); }; _B命令行.正常输出 += _B命令行_正常输出; _B命令行.异常输出 += _B命令行_异常输出; _B命令行.创建进程(_进程标识); }