private void transactionToolStripMenuItem_Click(object sender, EventArgs e) { if (trForm == null) { trForm = new TransactionForm(); trForm.MdiParent = this; trForm.FormClosed += TransactionFrm_FormClosed; trForm.Show(); } else { trForm.Activate(); } }
private void TransactionFrm_FormClosed(object sender, FormClosedEventArgs e) { trForm = null; }