public MainPageViewModel( INavigationService navigationService, IApplicationVersionHelper applicationVersionHelper) { this.navigationService = navigationService; this.applicationVersionHelper = applicationVersionHelper; this.Version = this.applicationVersionHelper.GetApplicationVersion(); this.PlanetsCommand = new DelegateCommand(this.ExecutePlanetsCommand); this.StarShipsCommand = new DelegateCommand(this.ExecuteStarShipsCommand); this.PeopleCommand = new DelegateCommand(this.ExecutePeopleCommand); }
public MainModel() { this.versionHelper = DependencyService.Get <IApplicationVersionHelper>(); }