Example #1
0
        public PersonViewAViewModel(IEventAggregator eventAggregator)
        {
            _eventAggregator = eventAggregator;

            UpdateCommand = new DelegateCommand(Execute, CanExecute)
                            .ObservesProperty(() => FirstName)
                            .ObservesProperty(() => LastName);

            PersonInfo person = PersonInfo.GetPerson(2);

            Id          = person.Id;
            FirstName   = person.FirstName;
            LastName    = person.LastName;
            LastUpdated = person.LastUpdated;
            Title       = "View A";
        }