/// <summary> /// 创建唯一实例 /// </summary> public static FrmFailInfo CreateInstance() { lock (syncRoot) { if (dlg == null || dlg.IsDisposed) { dlg = new FrmFailInfo(); } } return(dlg); }
private void btnReTest_Click(object sender, EventArgs e) { if (CGlobalPara.LogLevel[0] == 0) { MessageBox.Show(CLanguage.Lan("当前用户权限不够解除报警"), "Tip", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } if (MessageBox.Show(CLanguage.Lan("确认为【不良重测】,治具将直接重新测试?"), "Tip", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) { return; } result = 2; if (dlg != null) { dlg.Dispose(); dlg = null; } }