private void countryToolStripMenuItem_Click(object sender, EventArgs e) { if (objCountryForm == null) { objCountryForm = new CountryForm(); objCountryForm.MdiParent = this; objCountryForm.Show(); objCountryForm.FormClosing += objCountryForm_FormClosing; } else { objCountryForm.Activate(); } }
void objCountryForm_FormClosing(object sender, FormClosingEventArgs e) { objCountryForm = null; }