/// <summary> /// carga en el panel el formulario frmMostrarVehiculo /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnAlta_Click(object sender, EventArgs e) { var form = Application.OpenForms.OfType <FrmAltaVehiculo>().FirstOrDefault(); FrmAltaVehiculo frmAltaVehi = form ?? new FrmAltaVehiculo(); AddFormInPanel(frmAltaVehi); }
private void btnAgregarVehiculo_Click(object sender, EventArgs e) { FrmAltaVehiculo oFrmAltaVehiculo = new FrmAltaVehiculo(); oFrmAltaVehiculo.ShowDialog(); CargarGrillaVehiculos(); }