public RealtorDictionaryViewModel(IServiceLocator serviceLocator, IRealtorService dictionaryService, IMessageService messageService) : base(serviceLocator, messageService) { _DictionaryService = dictionaryService; PropertyChanged += (sender, args) => { if (args.PropertyName == PropertySupport.ExtractPropertyName(() => Name)) { AddCommand.RaiseCanExecuteChanged(); } }; _DictionaryService.StartSession(); }
public override void OpenSession() { _DictionaryService.StartSession(); }