private void btnLearner_Click(object sender, EventArgs e) { frmIRlearner frmTmp = new frmIRlearner(); frmTmp.FormClosed += frmTmp_FormClosed; frmTmp.ShowDialog(); }
private void iRLearnerToolStripMenuItem_Click(object sender, EventArgs e) { Boolean isOpen = HDLSysPF.IsAlreadyOpenedForm("frmIRlearner"); if (isOpen == false) { frmIRlearner frmUpdate = new frmIRlearner(); frmUpdate.ShowDialog(); } }