private void txtVD_Leave(object sender, EventArgs e) { try { Funciones.ValidarNumero(txtVD, "Por favor ingrese un número.", "Gestión - Remito"); ActualizarMontos(); } catch { } }
private void btnAceptar_Click(object sender, EventArgs e) { Funciones.ValidarNumero(txtCantidad, "Por favor ingrese un número.", "Gestión - Remito"); Funciones.ValidarNumero(txtPrecio, "Por favor ingrese un número.", "Gestión - Remito"); if (txtCantidad.Text == "0") { txtCantidad.Text = "1"; } if (destino == "principal") { ((frmPrincipal)principal).CargarDatosCantidadPrecio(txtCantidad.Text, txtPrecio.Text); } else { ((frmBMRemito)principal).CargarDatosCantidadPrecio(txtCantidad.Text, txtPrecio.Text); } principal.Enabled = true; this.Visible = false; }
private void txtVD_Leave(object sender, EventArgs e) { Funciones.ValidarNumero(txtVD, "Por favor ingrese un número.", "Gestión - Actualizar Cliente"); }
private void txtPrecio_Leave(object sender, EventArgs e) { Funciones.ValidarNumero(txtPrecio, "Por favor ingrese un número.", "Gestión - Agregar Producto"); }