private void modificarToolStripMenuItem_Click(object sender, EventArgs e) { if (exp == null) { exp = new Modificar(); exp.MdiParent = this; exp.FormClosed += new FormClosedEventHandler(exp_FormClosed); exp.Show(); lblLogo.Visible = false; picLogo.Visible = false; } else { exp.Activate(); lblLogo.Visible = false; picLogo.Visible = false; } }
void exp_FormClosed(object sender, EventArgs e) { exp = null; lblLogo.Visible = true; picLogo.Visible = true; }