private void offeringsToolStripMenuItem_Click(object sender, EventArgs e) { if (givingFrm == null) { givingFrm = new GivingFrm(currentSession); givingFrm.MdiParent = this; givingFrm.FormClosed += GivingFrm_FormClosed; givingFrm.Show(); } else { givingFrm.Activate(); } }
private void GivingFrm_FormClosed(object sender, FormClosedEventArgs e) { givingFrm = null; }