Esempio 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();
            }
        }
Esempio n. 2
0
 public BankDepCrudVM(IBankDepositsRepo repository, ITenantDBsDir dir) : base(repository, dir)
 {
     BankAccounts.SetItems(dir.MarketState.BankAccounts.GetAll());
     Descriptions.SetItems(Default.DepositDescriptions.Cast <string>());
 }