private void CantidadnumericUpDown_ValueChanged(object sender, EventArgs e) { decimal cantidad = Convert.ToInt32(CantidadnumericUpDown.Value); decimal precio = Convert.ToInt32(PrecionumericUpDown.Value); ImportetextBox.Text = FacturacionBLL.CalcularImporte(precio, cantidad).ToString(); }
protected void PrecioVentaTextbox_TextChanged(object sender, EventArgs e) { int cantidad = Convert.ToInt32(CantidadTexbox.Text.ToString()); int precio = Convert.ToInt32(PrecioVentaTextbox.Text.ToString()); int importe = Utilities.Utils.ToInt(ImporteTextbox.Text.ToString()); importe = FacturacionBLL.CalcularImporte(precio, cantidad); ImporteTextbox.Text = importe.ToString(); }