/// <summary> /// 系统切换 /// </summary> private void bbiSystem_ItemClick(object sender, ItemClickEventArgs e) { if (this.MdiChildren.GetLength(0) > 0) { MessageHelper.ShowWarning("还有未关闭窗口,请关闭后再转换!"); return; } LogHelper.Info(this, "切换系统 --- 关闭外部信息接口"); infoRemoteAction.Close(); LogHelper.Info(this, "切换系统 --- 关闭内部信息接口"); infoLocalAction.Close(); string code = e.Item.Tag.ToString(); if (code == "OPC") { WindowsFormsSettings.DefaultFont = new Font(SystemFonts.DefaultFont.Name, 10); } else { WindowsFormsSettings.DefaultFont = new Font(SystemFonts.DefaultFont.Name, SystemFonts.DefaultFont.Size); } EmpInfo.SelectSystem(code); this.Init(); }
private void FrmTest_FormClosed(object sender, FormClosedEventArgs e) { if (this.rir != null) { rir.Close(); } }