private void taskGrantToolStripMenuItem_Click(object sender, EventArgs e) { if (this.CheckChildFrmExist("SEC_TASK_GRANT") == true) { return; } SEC_TASK_GRANT newFrm = new SEC_TASK_GRANT(); if (newFrm != null && !ShowMDIChild(newFrm, newFrm)) { newFrm.Dispose(); newFrm = null; } }
private void SEC_TASK_GRANT_Click(object sender, EventArgs e) { frmMain frmmain = (frmMain)this.ParentForm; if (frmmain.CheckChildFrmExist("SEC_TASK_GRANT") == true) { return; } SEC_TASK_GRANT newFrm = new SEC_TASK_GRANT(); if (newFrm != null && !frmmain.ShowMDIChild(newFrm, newFrm)) { newFrm.Dispose(); newFrm = null; } }