private void checkAllBankMoneyInformationToolStripMenuItem1_Click(object sender, EventArgs e) { if (dabi == null) { dabi = new DeleteABankInformation(); dabi.MdiParent = this; dabi.FormClosed += dabi_FormClosed; dabi.Show(); } else { dabi.Activate(); } }
void dabi_FormClosed(object sender, FormClosedEventArgs e) { dabi = null; }