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