コード例 #1
0
        public async void OnNavigatedTo(NavigationParameters parameters)
        {
            if (parameters.ContainsKey("gotocard"))
            {
                List <Card> cards = await _azure.GetAllCards(_auth.CurrentUser);

                _auth.CurrentCard = cards.First(c => c.CardID == parameters["gotocard"].ToString());
                await _navigationService.NavigateAsync("TransactionsListPage");

                return;
            }

            _auth.CurrentCard = null;
            RefreshList();
        }
コード例 #2
0
        public async void RefreshList()
        {
            IsRefreshing = true;
            HockeyApp.MetricsManager.TrackEvent("Cards List Refreshed");
            await _azure.UpdateAllCards(_auth.CurrentUser);

            var ret = await _azure.GetAllCards(_auth.CurrentUser.UserID);

            CardsList    = null;
            CardsList    = new ObservableCollection <Card>(ret);
            IsRefreshing = false;
        }