Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public override void OpenSession()
 {
     _DictionaryService.StartSession();
 }