Example #1
0
        protected void PrecioCompraTexbox_TextChanged(object sender, EventArgs e)
        {
            int precioVenta  = Convert.ToInt32(PrecioVentaTextbox.Text.ToString());
            int precioCompra = Convert.ToInt32(PrecioCompraTexbox.Text.ToString());
            int ganancia     = Utilities.Utils.ToInt(GananciaTextbox.Text.ToString());

            if (Utilities.Utils.ToInt(PrecioCompraTexbox.Text) != 0 && Utilities.Utils.ToInt(PrecioVentaTextbox.Text) != 0)
            {
                ganancia = EntradaArticulosBLL.CalcularGanancia(precioVenta, precioCompra);
            }
        }
Example #2
0
 private void GananciaTextBox_TextChanged(object sender, EventArgs e)
 {
     GananciaTextBox.Text = EntradaArticulosBLL.CalcularGanancia(PrecioVentanumericUpDown.Value, PrecioCompranumericUpDown.Value).ToString();
 }