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>(); }
public AddEditTypeDocumentViewModel(ITypeDocumentsService typeDocumentsService) { _typeDocumentsService = typeDocumentsService; CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); }