Пример #1
0
        //double click on product row and open product detail window
        private void productClick(object sender, EventArgs e)
        {
            int productId = int.Parse(productListView.SelectedItems[0].SubItems[0].Text);

            Product.Product product = productManager.getProductById(productId, loggedUser.email, loggedUser.password);
            productDetail   detail  = new productDetail(product, loggedUser, this);

            detail.Show();
        }