コード例 #1
0
        //Constructor
        public PersonListViewModel(IRegionManager regionManager, IEventAggregator eventAggregator, IPersonService personService)
        {
            _rm = regionManager;
            _ps = personService;

            People = personService.GetAllPartialPeople();
            PeopleView.Refresh();
            PeopleView.Filter = PersonNameSearchFilter;

            NewPersonRequest = new InteractionRequest <INewPersonNotification>();
            NewClientCommand = new DelegateCommand(CreateNewPerson);
            eventAggregator.GetEvent <PersonListSelectEvent>().Subscribe(NavigateToPersonEntry);
        }
コード例 #2
0
 private object RefreshView()
 {
     PeopleView.Refresh();
     RaisePropertyChanged("PeopleView");
     return(null);
 }