public AddEditBankAccountViewModel(IBankAccountsService bankAccountsService, RelatedPersonListViewModel relatedPersonListViewModel, IBanksService banksService, ICurrenciesService currenciesService, IAccountTypesService accountTypesService) { _currenciesService = currenciesService; _bankAccountsService = bankAccountsService; _banksService = banksService; _accountTypesService = accountTypesService; CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); BanksDropDownOpenedCommand = new RelayCommand(OnBanksDropDownOpened, () => Banks != null && Banks.Any()); CurrenciesDropDownOpenedCommand = new RelayCommand(OnCurrenciesDropDownOpened, () => Currencies != null && Currencies.Any()); RelatedPersonListViewModel = relatedPersonListViewModel; }
public DLListViewModel(ISystemAccountingSettingsService systemAccountingSettingsService , IBankAccountsService bankAccountsService, IBanksService banksService, ICurrenciesService currenciesService, IAccountTypesService accountTypesService, ICompanyInformationsService companyInformationsService) { _companyInformationsService = companyInformationsService; CompanyInformationModel = _companyInformationsService.GetCompanyInformationModel(); _systemAccountingSettingsService = systemAccountingSettingsService; _banksService = banksService; _currenciesService = currenciesService; _accountTypesService = accountTypesService; _bankAccountsService = bankAccountsService; BanksDropDownOpenedCommand = new RelayCommand(OnBanksDropDownOpened, () => Banks != null && Banks.Any()); CurrenciesDropDownOpenedCommand = new RelayCommand(OnCurrenciesDropDownOpened, () => Currencies != null && Currencies.Any()); AddDLCommand = new RelayCommand(OnAddDL); EditDLCommand = new RelayCommand <DL>(OnEditDL); _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>(); }