private void RefreshAvailebleMoney() { Balance = bankLogic.GetBalance(); foreach (var item in MyBank.AvailableMoney) { for (int i = 0; i < AvailableMoney.Count; i++) { if (AvailableMoney[i].Key == item.Key) { AvailableMoney[i] = item; } } if (!AvailableMoney.Contains(item)) { AvailableMoney.Add(item); } } }
private void RefreshBalance() { string balance = bank.GetBalance(token).ToString(); labelAccountBalance.Content = balance; }