コード例 #1
0
        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);
        }
コード例 #2
0
 public MainModel()
 {
     this.versionHelper = DependencyService.Get <IApplicationVersionHelper>();
 }