Пример #1
0
        private void txt_CantComp_TextChanged(object sender, EventArgs e)
        {
            int precio = Producto.cuantoVale(cmb_Componente.SelectedValue.ToString());

            if (txt_CantComp.Text == "")
            {
            }
            else
            {
                txt_Subtotal.Text = (int.Parse(txt_CantComp.Text) * precio).ToString();
            }
        }