public BankAccountPickerVM(MainWindowVM mainWindowVM, bool selectFirstBankAcct) { _main = mainWindowVM; _dir = _main.AppArgs; BankAccounts.SetItems (_dir.MarketState.BankAccounts.GetAll()); if (selectFirstBankAcct) { SelectedBankAccount = BankAccounts.FirstOrDefault(); } }
public BankDepCrudVM(IBankDepositsRepo repository, ITenantDBsDir dir) : base(repository, dir) { BankAccounts.SetItems(dir.MarketState.BankAccounts.GetAll()); Descriptions.SetItems(Default.DepositDescriptions.Cast <string>()); }