Example #1
0
        private void LlenaImporte()
        {
            int cantidad, precio;

            cantidad            = Utils.ToInt(cantidadTextBox.Text);
            precio              = Utils.ToInt(precioTextBox.Text);
            importeTextBox.Text = CalculosBLL.CalcularImporte(cantidad, precio).ToString();
        }
Example #2
0
 //calculando importe
 private Decimal Importe()
 {
     if (CantidadNumericUpDown.Value != 0 && PrecioNumericUpDown.Value != 0)
     {
         return(ImporteNumericUpDown.Value = CalculosBLL.CalcularImporte(CantidadNumericUpDown.Value, PrecioNumericUpDown.Value));
     }
     else
     {
         return(ImporteNumericUpDown.Value = 0);
     }
 }
Example #3
0
 protected void CantidadTextBox_TextChanged(object sender, EventArgs e)
 {
     ImporteTextBox.Text = CalculosBLL.CalcularImporte(Utils.ToDecimal(CantidadTextBox.Text), Utils.ToDecimal(PrecioTextBox.Text)).ToString();
 }