public AddEditCompanyViewModel(ICompaniesService companiesService, RelatedPersonListViewModel relatedPersonListViewModel) { _companiesService = companiesService; CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); RelatedPersonListViewModel = relatedPersonListViewModel; }
public AddEditPersonViewModel(IPeopleService peopleService, RelatedPersonListViewModel relatedPersonListViewModel) { _peopleService = peopleService; CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); RelatedPersonListViewModel = relatedPersonListViewModel; }
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; }