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