コード例 #1
0
 public TypeDocumentListViewModel(ITypeDocumentsService typeDocumentsService, ICompanyInformationsService companyInformationsService)
 {
     _companyInformationsService = companyInformationsService;
     CompanyInformationModel     = _companyInformationsService.GetCompanyInformationModel();
     _typeDocumentsService       = typeDocumentsService;
     AddTypeDocumentCommand      = new RelayCommand(OnAddTypeDocument);
     EditTypeDocumentCommand     = new RelayCommand <TypeDocument>(OnEditTypeDocument);
     DeleteCommand  = new RelayCommand <TypeDocument>(OnDeleteTypeDocument);
     _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>();
 }
コード例 #2
0
 public AddEditTypeDocumentViewModel(ITypeDocumentsService typeDocumentsService)
 {
     _typeDocumentsService = typeDocumentsService;
     CancelCommand         = new RelayCommand(OnCancel);
     SaveCommand           = new RelayCommand(OnSave, CanSave);
 }