Exemplo n.º 1
0
        private void ModificarCantidad()
        {
            int             cantidad;
            IngresaCantidad frmIngresaCantidad = new IngresaCantidad();

            frmIngresaCantidad.ShowDialog();
            cantidad = frmIngresaCantidad.cantidad;
            if (cantidad > 0)
            {
                Producto.AgregarCantidad(productosVenta, productosVenta[dgv_ListaVenta.CurrentRow.Index], cantidad);
            }
        }
Exemplo n.º 2
0
        private void dataGridView2_Click(object sender, EventArgs e)
        {
            IngresaCantidad frmIngresaCantidad = new IngresaCantidad();

            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);
        }