void btnVer_Click(object sender, EventArgs e)
        {
            BuscarProducto bp = new BuscarProducto();

            bp.ShowDialog();

            if (bp.productoSeleccionado != null)
            {
                productoActual = bp.productoSeleccionado;
                txtnom.Text    = bp.productoSeleccionado.NOMBRE;
                txtexis.Text   = Convert.ToString(bp.productoSeleccionado.EXISTENCIA);
                txtpn.Text     = Convert.ToString(bp.productoSeleccionado.PRECIO_N);
                txtpv.Text     = Convert.ToString(bp.productoSeleccionado.PRECIO_V);
            }
        }
        void ButtonBuscaProductoClick(object sender, EventArgs e)
        {
            vb.ShowDialog();

            if (vb.productoSeleccionado != null)
            {
                textBoxDescribeProducto.Text = vb.productoSeleccionado.NOMBRE;
                textBoxCantidadProduct.Text  = Convert.ToString(vb.productoSeleccionado.EXISTENCIA);

                textBoxPrecioUnit.Text = Convert.ToString(vb.productoSeleccionado.PRECIO_V);
            }
            else
            {
                MessageBox.Show("No se pudo cargar el producto!");
            }
        }
Example #3
0
        void button2_Click(object sender, EventArgs e)
        {
            BuscarProducto bp = new BuscarProducto();

            bp.ShowDialog();
        }