Ejemplo n.º 1
0
        private void products_dgv_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int rowIndex = orderProducts_dgv.CurrentCell.RowIndex;
            ProductInformationForm productInformation = new ProductInformationForm(order.products[rowIndex]);

            productInformation.ShowDialog();
        }
Ejemplo n.º 2
0
        private void orderBasket_dgv_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int rowIndex    = orderBasket_dgv.CurrentCell.RowIndex;
            int columnIndex = orderBasket_dgv.CurrentCell.ColumnIndex;

            if (basket.productInBasket.Count == 0)//если корзина пуста,то ничего не происходит
            {
                return;
            }
            //if (columnIndex == 12)//клик по count
            //    return;
            ProductInformationForm productInformation = new ProductInformationForm(basket.productInBasket.ElementAt(rowIndex).Value);

            productInformation.ShowDialog();
        }