private void checkAllBankMoneyInformationToolStripMenuItem2_Click(object sender, EventArgs e) { if (wmfb == null) { wmfb = new WithdrawMoneyFromBank(); wmfb.MdiParent = this; wmfb.FormClosed += wmfb_FormClosed; wmfb.Show(); } else { wmfb.Activate(); } }
void wmfb_FormClosed(object sender, FormClosedEventArgs e) { wmfb = null; }