private void btnInsertar_Click(object sender, EventArgs e) { Producto producto1 = new Producto(Convert.ToInt32(txtCodigo.Text), txtNombre.Text, Convert.ToInt32(txtCantidad.Text), Convert.ToInt32(txtPrecio.Text)); inventario1.insertarProducto(producto1, Convert.ToInt32(txtPosicion.Text)); txtReporte.Text = inventario1.reporteDeProductos(); }
private void btnInsertar_Click_1(object sender, EventArgs e) { Producto producto = new Producto(Convert.ToInt32(txtCodigo.Text), txtNombre.Text, Convert.ToInt32(txtCantidad.Text), Convert.ToInt32(txtCosto.Text)); inventario.insertarProducto(producto, Convert.ToInt32(txtPocision.Text)); }