public void ReloadWallets() { Wallets.Clear(); foreach (var wallet in _repository.GetWallets()) { Wallets.Add(wallet); } }
public static void UpdateWalletsCollection() { Wallets.Clear(); foreach (Wallet wallet in _service.GetWallets()) { if (wallet.OwnerGuid == CurrentInformation.User.Guid) { Wallets.Add(new WalletDetailsViewModel(wallet)); } } }
async void RefreshInitial() { Wallets.Clear(); Markets = (ObservableRangeCollection <Market>) await MarketService.GetMarket(); var wallets = await WalletService.GetUserWallets(UserId); /*var wallets = await WalletService.GetWallets();*/ var extendedWallets = createExtended(wallets); LoadWalletOnProperties(wallets); //Wallets.AddRange(wallets); ExtendedWallets.AddRange(extendedWallets); }
async Task Refresh() { IsBusy = true; Wallets.Clear(); ExtendedWallets.Clear(); var wallets = await WalletService.GetUserWallets(UserId); /*var wallets = await WalletService.GetWallets();*/ var extendedWallets = createExtended(wallets); LoadWalletOnProperties(wallets); //Wallets.AddRange(wallets); ExtendedWallets.AddRange(extendedWallets); IsBusy = false; }