/// <summary> /// 打开气动传输监控 /// </summary> public void OpenAutoCupboard() { this.Invoke((Action)(() => { string uniqueKey = FrmAutoCupboardPneumaticTransfer.UniqueKey; if (FrmMainFrame.superTabControlManager.GetTab(uniqueKey) == null) { FrmAutoCupboardPneumaticTransfer frm = new FrmAutoCupboardPneumaticTransfer(); FrmMainFrame.superTabControlManager.CreateTab(frm.Text, uniqueKey, frm, false); } else { FrmMainFrame.superTabControlManager.ChangeToTab(uniqueKey); } })); }
/// <summary> /// 打开智能存样柜与气动传输监控 /// </summary> public void OpenAutoCupboardPneumaticTransfer(string par) { SetColoTable(); this.btnOpenAutoCupboard.ColorTable = eButtonColor.Blue; this.Invoke((Action)(() => { string uniqueKey = FrmAutoCupboardPneumaticTransfer.UniqueKey; if (FrmMainFrame.superTabControlManager.GetTab(uniqueKey) == null) { FrmAutoCupboardPneumaticTransfer item = new FrmAutoCupboardPneumaticTransfer(); FrmAutoCupboardPneumaticTransfer.Device = par; FrmMainFrame.superTabControlManager.CreateTab(item.Text, uniqueKey, item, true); } else { FrmAutoCupboardPneumaticTransfer.Device = par; FrmMainFrame.superTabControlManager.ChangeToTab(uniqueKey); } })); }