private void ModificarCantidad() { int cantidad; FrmIngresaCantidad frmIngresaCantidad = new FrmIngresaCantidad(); frmIngresaCantidad.ShowDialog(); cantidad = frmIngresaCantidad.cantidad; if (cantidad > 0) { Producto.AgregarCantidad(productosVenta, int.Parse(dgv_ListaVenta.CurrentRow.Cells[0].Value.ToString()), cantidad); } }
private void dataGridView2_Click(object sender, EventArgs e) { FrmIngresaCantidad frmIngresaCantidad = new FrmIngresaCantidad(); if (dgv_ListaVenta.Rows.Count > 0 && dgv_ListaVenta.CurrentCell.RowIndex > -1) { if (dgv_ListaVenta.CurrentCell.ColumnIndex == 3) { ModificarCantidad(); } else if (dgv_ListaVenta.CurrentCell.ColumnIndex == 4) { RemoverProducto(); } } this.dgvDibujar(productosVenta); }