private void compras_btn_Click(object sender, EventArgs e) { Form fc = Application.OpenForms["NuevoVehiculoForm"]; if (fc != null) { fc.BringToFront(); fc.WindowState = FormWindowState.Normal; } else { NuevoVehiculoForm frm = new NuevoVehiculoForm(); frm.Show(); } }
private void nuevoVehiculo_btn_Click(object sender, EventArgs e) { Form fc = Application.OpenForms["NuevoVehiculoForm"]; if (fc != null) { fc.BringToFront(); } else { NuevoVehiculoForm form = new NuevoVehiculoForm(); form.ShowDialog(); proceso_radioBtn.Checked = true; LlenarDtgVehiculos(); } }