/// <summary> /// 12.合样归批 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tsmiOpenFrmBatchMachine_Click(object sender, EventArgs e) { TaskForm taskForm = new FrmBatchMachine(); if (HaveOpened(taskForm, this)) { taskForm.MdiParent = this; taskForm.Show(); } }
/// <summary> /// 打开合样归批机 /// </summary> public void OpenBatchMachine() { this.InvokeEx(() => { string uniqueKey = FrmBatchMachine.UniqueKey; if (FrmMainFrame.superTabControlManager.GetTab(uniqueKey) == null) { FrmBatchMachine frmBatchMachine = new FrmBatchMachine(); FrmMainFrame.superTabControlManager.CreateTab(frmBatchMachine.Text, uniqueKey, frmBatchMachine, false); } else { FrmMainFrame.superTabControlManager.ChangeToTab(uniqueKey); } }); }