コード例 #1
0
        public void ReloadWallets()
        {
            Wallets.Clear();

            foreach (var wallet in _repository.GetWallets())
            {
                Wallets.Add(wallet);
            }
        }
コード例 #2
0
 public static void UpdateWalletsCollection()
 {
     Wallets.Clear();
     foreach (Wallet wallet in _service.GetWallets())
     {
         if (wallet.OwnerGuid == CurrentInformation.User.Guid)
         {
             Wallets.Add(new WalletDetailsViewModel(wallet));
         }
     }
 }
コード例 #3
0
        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);
        }
コード例 #4
0
        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;
        }