Beispiel #1
0
        private async void AddProduct_Click(object sender, RoutedEventArgs e)
        {
            var product = new ProductDialog(conn);

            product.Closing += this.UpdateListProduct;
            await product.ShowAsync();
        }
Beispiel #2
0
        private async void EditProduct_Click(object sender, RoutedEventArgs e)
        {
            var btn           = sender as Button;
            var productSelect = ListProduct.First(x => x.ProductID == int.Parse(btn.Tag.ToString()));
            var product       = new ProductDialog(conn, productSelect);

            product.Closing += this.UpdateListProduct;
            await product.ShowAsync();
        }