Exemplo n.º 1
0
        private async void Button_Tapped(object sender, TappedRoutedEventArgs e)
        {
            ContentDialog ms = new ContentDialog()
            {
                Title             = "Thông Báo",
                Content           = "Bạn có muốn xóa danh sách sản phẩm",
                PrimaryButtonText = "OK",
                CloseButtonText   = "Close"
            };
            ContentDialogResult result = await ms.ShowAsync();


            if (result == ContentDialogResult.Primary)
            {
                Carts service = new Carts();
                service.DeleteAllItem();
                getData();
            }
        }