public SettingsPage()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            CountBox.SelectionChanged += ChangeNearbyCount;
            PivotBox.SelectionChanged += ChangePivotSetting;
            TileSwitch.Toggled += TileSwitchToggled;

            if (SettingsHelper.NearbyCount == 15)
            {
                CountBox.SelectedIndex = 0;
            }
            else
            {
                CountBox.SelectedIndex = 1;
            }


            PivotBox.SelectedIndex = SettingsHelper.LaunchPivotIndex;

            if (SettingsHelper.TransparentTile == 1)
            {
                TileSwitch.IsOn = true;
            }
            else
            {
                TileSwitch.IsOn = false;
            }

            RefreshLabel.Text = SettingsHelper.RefreshedDate;
        }
        public StopDetail()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
        }
        public RouteMapPage()
        {
            this.InitializeComponent(); 

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            refreshTimer = new DispatcherTimer();
            refreshTimer.Tick += TimerDue;
            refreshTimer.Interval = new TimeSpan(0, 0, 30);
        }