コード例 #1
0
        private void OnAddAccountMap(string obj)
        {
            var result = new AccountTransactionDocumentAccountMap();

            Model.AccountTransactionDocumentAccountMaps.Add(result);
            AccountTransactionDocumentAccountMaps.Add(new AccountTransactionDocumentAccountMapViewModel(_accountService, result, MasterAccountType, NeededAccountType));
        }
コード例 #2
0
 public AccountTransactionDocumentAccountMapViewModel(IAccountService accountService, AccountTransactionDocumentAccountMap accountTransactionDocumentAccountMap, AccountType masterAccountType, AccountType mappingAccountType)
 {
     Model           = accountTransactionDocumentAccountMap;
     AccountSelector = new AccountSelectViewModel(accountService, masterAccountType, Model.AccountName, (x, y) => { Model.AccountId = y; Model.AccountName = x; });
     if (mappingAccountType != null)
     {
         MappedAccountSelector = new AccountSelectViewModel(accountService, mappingAccountType, Model.MappedAccountName, (x, y) => { Model.MappedAccountId = y; Model.MappedAccountName = x; });
     }
 }