private void mantenimientoClasesDeVehiculoToolStripMenuItem_Click(object sender, EventArgs e) { if (clasesVehiculos == null) { clasesVehiculos = new ClasesVehiculos(); clasesVehiculos.MdiParent = this; clasesVehiculos.FormClosed += new FormClosedEventHandler(cerrarClasesVehiculos); clasesVehiculos.Show(); } else { clasesVehiculos.Activate(); } }
private void cerrarClasesVehiculos(object sender, FormClosedEventArgs e) { clasesVehiculos = null; }