public DictionaryWithOnlyNameEntitiesViewModel(IServiceLocator serviceLocator, IDictionaryWithOnlyNameEntitiesService <TEntity> dictionaryService, IMessageService messageService) : base(serviceLocator, messageService) { _DictionaryService = dictionaryService; PropertyChanged += (sender, args) => { if (args.PropertyName == PropertySupport.ExtractPropertyName(() => Name)) { AddCommand.RaiseCanExecuteChanged(); } }; _DictionaryService.StartSession(); }
public DictionaryWithOnlyNameEntityViewModel(IDictionaryWithOnlyNameEntitiesService <T> dictionaryService) { _DictionaryService = dictionaryService; }