private void btnBusquedaProducto_Click_1(object sender, EventArgs e) { nudCantidad.Value = 0; VentanaProductos x; x = new VentanaProductos(); x.ShowDialog(); if (x.ProductoSeleccionado == null) { MessageBox.Show("La búsqueda fue cancelada"); } else { txtMarca.Text = x.ProductoSeleccionado.MarcaProd; txtDescripcion.Text = x.ProductoSeleccionado.NombreProd; IdProd = x.ProductoSeleccionado.IdProducto; cmbMedida.Items.Clear(); foreach (clsPrecio ELEMENTO in clsPrecio.ListarPreciosProducto(x.ProductoSeleccionado.IdProducto)) { cmbMedida.Items.Add(ELEMENTO.NombreMedida); } } }
private void pictureBox5_Click(object sender, EventArgs e) { VentanaProductos x; x = new VentanaProductos(); x.ShowDialog(); }