private async Task InitializeDataAsync()
        {
            //  var userserve = new CaseServices();
            var CartProductDatas = new CallbackdataAlert();

            UsersCartList = await CartProductDatas.GetalertIntrestList();
        }
示例#2
0
        public async Task GetTransactions()
        {
            try
            {
                notFound.IsVisible = true;
                notFound.Text      = "Loading...";

                var list = await newServecal.GetalertIntrestList();

                _alertproduct = new ObservableCollection <AlertproductModel>(list);
                TransactionsListView.ItemsSource = _alertproduct;

                TransactionsListView.IsVisible = _alertproduct.Any();
                notFound.IsVisible             = !TransactionsListView.IsVisible;
            }
            catch (Exception)
            {
                await DisplayAlert("Error!",
                                   "Connection interrupted. Please check your network status, refresh the page or try again later.",
                                   "OK");
            }
            finally
            {
                notFound.Text = "No items found.";
            }
        }