예제 #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>();
 }
예제 #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();
 }