private void MT_trandepo_Click(object sender, EventArgs e) { if (td == null) { td = new Transaction_Deposit(); td.MdiParent = this; td.FormClosed += new FormClosedEventHandler(Td_FormClosed); td.Show(); } else { td.Activate(); } }
private void Td_FormClosed(object sender, FormClosedEventArgs e) { td = null; }