private async void Loaded() { var includedAccountList = await accountService.GetNotExcludedAccounts(); var excludedAccountList = await accountService.GetExcludedAccounts(); IncludedAccounts = new ObservableCollection <AccountViewModel>(includedAccountList.Select(x => new AccountViewModel(x))); ExcludedAccounts = new ObservableCollection <AccountViewModel>(excludedAccountList.Select(x => new AccountViewModel(x))); BalanceViewModel.UpdateBalanceCommand.Execute(); await balanceCalculationManager.GetTotalEndOfMonthBalance(); }
/// <summary> /// Calculates the sum of all accounts at the end of the month. /// </summary> /// <returns>Sum of all balances including all payments to come till end of month.</returns> protected virtual async Task <double> GetEndOfMonthValue() { return(await balanceCalculationManager.GetTotalEndOfMonthBalance()); }