Exemplo n.º 1
0
        public BankAccountPickerVM(MainWindowVM mainWindowVM, bool selectFirstBankAcct)
        {
            _main = mainWindowVM;
            _dir  = _main.AppArgs;

            BankAccounts.SetItems
                (_dir.MarketState.BankAccounts.GetAll());

            if (selectFirstBankAcct)
            {
                SelectedBankAccount = BankAccounts.FirstOrDefault();
            }
        }
Exemplo n.º 2
0
 public BankDepCrudVM(IBankDepositsRepo repository, ITenantDBsDir dir) : base(repository, dir)
 {
     BankAccounts.SetItems(dir.MarketState.BankAccounts.GetAll());
     Descriptions.SetItems(Default.DepositDescriptions.Cast <string>());
 }