Ejemplo n.º 1
0
        public AccountTreeViewModel(
            ILoggerFactory loggerFactory,
            IAccountService accountService,
            IAccountRelationshipService accountRelationshipService,
            ITransactionService transactionService,
            ITransactionRelationshipService transactionRelationshipService,
            IAccountTreeItemViewModelFactory accountTreeItemViewModelFactory,
            IAccountCreateViewService accountCreateViewService,
            IAccountEditViewService accountEditViewService,
            IAccountTransactionsEditViewService accountTransactionsEditViewService,
            INoPendingCreditCardTransactionsViewService noPendingCreditCardTrasnactionsViewService,
            ITransactionBatchCreateConfirmViewService transactionBatchCreateConfirmViewService)
        {
            m_logger                                     = loggerFactory.CreateLogger <AccountTreeViewModel>();
            m_accountService                             = accountService;
            m_accountRelationshipService                 = accountRelationshipService;
            m_transactionService                         = transactionService;
            m_transactionRelationshipService             = transactionRelationshipService;
            m_accountTreeItemViewModelFactory            = accountTreeItemViewModelFactory;
            m_accountCreateViewService                   = accountCreateViewService;
            m_accountEditViewService                     = accountEditViewService;
            m_accountTransactionsEditViewService         = accountTransactionsEditViewService;
            m_noPendingCreditCardTrasnactionsViewService = noPendingCreditCardTrasnactionsViewService;
            m_transactionBatchCreateConfirmViewService   = transactionBatchCreateConfirmViewService;

            m_showAssets      = true;
            m_showLiabilities = true;
            m_showIncome      = false;
            m_showExpenses    = false;
            m_showCapital     = false;

            PopulateAccountTreeItems();
        }
Ejemplo n.º 2
0
 public AccountTreeViewModelFactory(
     ILoggerFactory loggerFactory,
     IAccountService accountService,
     IAccountRelationshipService accountRelationshipService,
     ITransactionService transactionService,
     ITransactionRelationshipService transactionRelationshipService,
     IAccountTreeItemViewModelFactory accountTreeItemViewModelFactory,
     IAccountCreateViewService accountCreateViewService,
     IAccountEditViewService accountEditViewService,
     IAccountTransactionsEditViewService accountTransactionsEditViewService,
     INoPendingCreditCardTransactionsViewService noPendingCreditCardTrasnactionsViewService,
     ITransactionBatchCreateConfirmViewService transactionBatchCreateConfirmViewService)
 {
     m_loggerFactory                              = loggerFactory;
     m_accountService                             = accountService;
     m_accountRelationshipService                 = accountRelationshipService;
     m_transactionService                         = transactionService;
     m_transactionRelationshipService             = transactionRelationshipService;
     m_accountTreeItemViewModelFactory            = accountTreeItemViewModelFactory;
     m_accountCreateViewService                   = accountCreateViewService;
     m_accountEditViewService                     = accountEditViewService;
     m_accountTransactionsEditViewService         = accountTransactionsEditViewService;
     m_noPendingCreditCardTrasnactionsViewService = noPendingCreditCardTrasnactionsViewService;
     m_transactionBatchCreateConfirmViewService   = transactionBatchCreateConfirmViewService;
 }