/// <summary> /// Constructor /// </summary> public AboutPage() { this.InitializeComponent(); this._navigationHelper = new NavigationHelper(this); this._navigationHelper.LoadState += this.NavigationHelper_LoadState; this._navigationHelper.SaveState += this.NavigationHelper_SaveState; this.Loaded += (sender, args) => { var ver = Windows.ApplicationModel.Package.Current.Id.Version; VersionNumber.Text = string.Format("{0}.{1}.{2}.{3}", ver.Major, ver.Minor, ver.Build, ver.Revision); }; }
/// <summary> /// Constructor /// </summary> public MapPage() { this.InitializeComponent(); this.NavigationCacheMode = NavigationCacheMode.Required; this._navigationHelper = new NavigationHelper( this ); FillDateList(); FillTimeFilterList(); DaySelectionSource.Source = _daySelectionList; TimeFilterSource.Source = _timeFilterList; FilterTime.Text = _daySelectionList[ 0 ].Name; TracksMap.MapServiceToken = "xxx"; // Activate and deactivate the SensorCore when the visibility of the app changes Window.Current.VisibilityChanged += async ( oo, ee ) => { if( !ee.Visible ) { if( _tracker != null ) { await CallSensorcoreApiAsync( async () => { await _tracker.DeactivateAsync(); } ); } } else { await ValidateSettingsAsync(); if( _tracker == null ) { await CallSensorcoreApiAsync( async () => { _tracker = await RouteTracker.GetDefaultAsync(); } ); } else { await CallSensorcoreApiAsync( async () => { await _tracker.ActivateAsync(); } ); } await DrawRoute(); } }; }