public PersonDetailsViewModel(IEventAggregator eventAggregator, IFakePeopleService fakePeopleService) { this.eventAggregator = eventAggregator; this.fakePeopleService = fakePeopleService; this.tracker = new ChangeTracker(); SaveCommand = new DelegateCommand <object>(Save); }
public NavigationBehaviorsSampleViewModel(IEventAggregator eventAggregator, IFakePeopleService fakePeopleService) { this.eventAggregator = eventAggregator; this.fakePeopleService = fakePeopleService; Navigation = NavigationManager.GetDefaultNavigationSource("Main"); this.Commands = new NavigationSourceCommands(Navigation); SayHelloCommand = new DelegateCommand <string>(SayHello); SelectPersonCommand = new DelegateCommand <Person>(ShowPersonDetails); }