Exemple #1
0
 public TLListViewModel(ISystemAccountingSettingsService systemAccountingSettingsService, ICompanyInformationsService companyInformationsService)
 {
     _companyInformationsService      = companyInformationsService;
     CompanyInformationModel          = _companyInformationsService.GetCompanyInformationModel();
     _systemAccountingSettingsService = systemAccountingSettingsService;
     AddTLCommand             = new RelayCommand(OnAddTL);
     GLsDropDownOpenedCommand = new RelayCommand(OnGLsDropDownOpened, () => GLs != null && GLs.Any());
     TL             = new TL();
     _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>();
 }
Exemple #2
0
 public AddTLTreeItemWindowViewModel(ITLsService tLsService, IGLsService gLsService, ISystemAccountingSettingsService systemAccountingSettingsService)
 {
     _tLsService = tLsService;
     _gLsService = gLsService;
     //   CancelCommand = new RelayCommand(OnCancel);
     SaveCommand = new RelayCommand(OnSave, CanSave);
     GLsDropDownOpenedCommand         = new RelayCommand(OnGLsDropDownOpened, () => GLs != null && GLs.Any());
     _systemAccountingSettingsService = systemAccountingSettingsService;
     //TL = new TL();
 }