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(); }
private void button2_Click(object sender, EventArgs e) { ProductDetail productDetail = new ProductDetail(PID, Addcart); productDetail.ShowDialog(); }