private void kazaEkleToolStripMenuItem_Click(object sender, EventArgs e) { if (frmA == null) { frmA = new frmIncıdentAdd(); frmA.MdiParent = this; frmA.Show(); frmA.FormClosed += frmA_FormClosed; } else { return; } }
private void frmA_FormClosed(object sender, FormClosedEventArgs e) { frmA.Dispose(); frmA = null; }