private void button2_Click(object sender, EventArgs e) { if (bdd_ventas.SelectedRows != null) { VentaProductos vp = new VentaProductos((Venta)bdd_ventas.CurrentRow.DataBoundItem); vp.ShowDialog(); } }
private void btn_ver_Click(object sender, EventArgs e) { if (bdd_ventas.SelectedRows != null) { VentaProductos vp = new VentaProductos((Venta)bdd_ventas.CurrentRow.DataBoundItem); vp.ShowDialog(); } Principal.cerrar_venta_no_impresa = false; this.Close(); }
private void bdd_ventas_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (lista.Count > 0) { if (((Venta)bdd_ventas.CurrentRow.DataBoundItem).Id_venta != 0) { VentaProductos vp = new VentaProductos((Venta)bdd_ventas.CurrentRow.DataBoundItem); vp.ShowDialog(); } } Principal.cerrar_venta_no_impresa = false; this.Close(); }
private void bdd_ventas_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { VentaProductos vp = new VentaProductos((Venta)bdd_ventas.CurrentRow.DataBoundItem); vp.ShowDialog(); }