/// <summary> /// 显示插件 /// </summary> public void ShowPlugin() { try { if (null == ipForm) { ipForm = new IpSeekerForm(app, this); //初始化插件窗体 } ipForm.Show(app.DockPanel, DockState.Document); //显示在停靠栏中间 } catch (Exception ex) { //app.WriteDebug(ex); //代理公布器调试窗体信息显示 app.WriteExceptionLog(ex);//记录错误日志 //app.WriteLog(ex.Message); } }
/// <summary> /// 隐藏插件 /// </summary> public void HidePlugin() { try { if (null != ipForm) { if (this.Exist) { ipForm.Hide(); } else { ipForm = null; } } } catch (Exception ex) { //app.WriteDebug(ex); //代理公布器调试窗体信息显示 app.WriteExceptionLog(ex);//记录错误日志 //app.WriteLog(ex.Message); } }