public AddSLTreeItemWindowViewModel(ISLsService sLsService, ITLsService tLsService, IDLTypesService dLTypesService, ISystemAccountingSettingsService systemAccountingSettingsService, IPropertiesService propertiesService, IAccountsNaturesService accountsNaturesService) { _dLTypesService = dLTypesService; _sLsService = sLsService; _tLsService = tLsService; _systemAccountingSettingsService = systemAccountingSettingsService; _propertiesService = propertiesService; _accountsNaturesService = accountsNaturesService; // CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); TLsDropDownOpenedCommand = new RelayCommand(OnTLsDropDownOpened, () => TLs != null && TLs.Any()); PropertiesDropDownOpenedCommand = new RelayCommand(OnPropertiesDropDownOpened, () => Properties != null && Properties.Any()); AccountsNaturesDropDownOpenedCommand = new RelayCommand(OnAccountsNaturesDropDownOpened, () => AccountsNatures != null && AccountsNatures.Any()); SelectedDLTypes1 = new ObservableCollection <DLType>(); SelectedDLTypes2 = new ObservableCollection <DLType>(); // SLStandardDescriptionListViewModel = SmObjectFactory.Container.GetInstance<SLStandardDescriptionListViewModel>(); SL = new SL(); }
public SLListViewModel(ISystemAccountingSettingsService systemAccountingSettingsService, ICompanyInformationsService companyInformationsService) { _companyInformationsService = companyInformationsService; CompanyInformationModel = _companyInformationsService.GetCompanyInformationModel(); _systemAccountingSettingsService = systemAccountingSettingsService; AddSLCommand = new RelayCommand(OnAddSL); AddSLStandardDescriptionCommand = new RelayCommand <SL>(OnAddSLStandardDescription); TLsDropDownOpenedCommand = new RelayCommand(OnTLsDropDownOpened, () => TLs != null && TLs.Any()); SL = new SL(); _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>(); }