private async Task GetTransactions() { IsRefreshing = true; var transactions = await _walletController.GetTransactions(); Transactions = new ObservableCollection <Transaction>(transactions); IsRefreshing = false; }
private async Task GetTransactions() { IsRefreshing = true; var transactions = await _walletController.GetTransactions(); transactions = transactions.Where(x => x.Status == Constants.TRANSACTION_DEPOSITED).ToList(); Transactions = new ObservableCollection <Transaction>(transactions); IsRefreshing = false; }
private async Task GetTransactions() { IsRefreshing = true; var transactions = await _walletController.GetTransactions(); if (!string.IsNullOrEmpty(_filter)) { transactions = transactions.Where(x => x.Status == _filter).ToList(); } Transactions = new ObservableCollection <Transaction>(transactions); IsRefreshing = false; }
public override async Task InitializeAsync(object parameter) { bool reload = (bool)parameter; if (IsBusy) { return; } IsBusy = true; IsRefreshing = true; var transactions = await _walletController.GetTransactions(reload); LatestTransactions = new ObservableCollection <Transaction>(transactions.Take(5)); var assets = await _walletController.GetCoins(reload); Assets = new ObservableCollection <Coin>(assets.Take(3)); BuildChart(assets); PortfolioValue = assets.Sum(x => x.DollarValue); IsRefreshing = false; IsBusy = false; }