Ejemplo n.º 1
0
 protected virtual void ClearNavigationProperties()
 {
     BankAccounts.Clear();
     Country = null;
     Orders.Clear();
     CustomerPicture = null;
 }
 private void Reset()
 {
     this.ledger         = null;
     MonthlyBudgetAmount = 0;
     BankAccounts.Clear();
     StoredInAccount = null;
 }
Ejemplo n.º 3
0
        private void LoadBankAccountList()
        {
            // load dictionary of BankAccount entities
            allBankAccounts.Clear();
            bankAccountRepository.ReadList().ToList().ForEach(a => allBankAccounts.Add(a.BankAccountId, a));

            // populate collection for View
            BankAccounts.Clear();
            allBankAccounts.Values.ToList().ForEach(a => BankAccounts.Add(new BankAccountItemViewModel(a)));

            // Flag selected items
            foreach (var cfa in this.entity.CashflowBankAccounts)
            {
                var a = this.BankAccounts.FirstOrDefault(ba => ba.BankAccountId == cfa.BankAccount.BankAccountId);
                if (a != null)
                {
                    a.IsSelected = true;
                }
            }
        }
Ejemplo n.º 4
0
 private void LoadBankAccountList()
 {
     BankAccounts.Clear();
     BankAccounts.Add(BankAccountItemViewModel.Elsewhere);
     bankAccountRepository.ReadList().ForEach(a => BankAccounts.Add(new BankAccountItemViewModel(a)));
 }