Exemple #1
0
        private void ShowDetailsExecute()
        {
            try
            {
                ProductDetail productDetail = new ProductDetail(SelectetProduct, storeCount);
                productDetail.ShowDialog();

                if ((productDetail.DataContext as ProductDetailViewModel).IsUpdateProduct == true)
                {
                    storeCount  = (productDetail.DataContext as ProductDetailViewModel).StoreCount;
                    ProductList = dataService.GetProducts();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
        private void C_Click(object sender, EventArgs e)
        {
            ProductDetail a = new ProductDetail(ProductID, InCart);

            a.ShowDialog();
        }
Exemple #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            ProductDetail productDetail = new ProductDetail(PID, Addcart);

            productDetail.ShowDialog();
        }