Example #1
0
 public NavigationViewModel(IFriendsRepository repository, IEventAggregator eventAggregator)
 {
     _repository      = repository;
     Friends          = _repository.GetFriends();
     _eventAggregator = eventAggregator;
     _eventAggregator.GetEvent <UpdateFriendDetailViewEvent>().Subscribe(onUpdateDetailView);
 }
Example #2
0
 private void onUpdateDetailView()
 {
     Friends = _repository.GetFriends();
 }