public StationList()
        {
            this.InitializeComponent();
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += navigationHelper_LoadState;

            this.DataContext = App.ViewModel;

            sortButton.Label = _myResourceLoader.GetString("SortDistance");
        }
        public StationPage()
        {
            this.InitializeComponent();
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += navigationHelper_LoadState;
            this.Loaded += StationPage_Loaded;
            this.Unloaded += StationPage_Unloaded;

            contentGraphsGrid.DataContext = App.ViewModel;

            Station tmp = App.ViewModel.DetailsStation; // Get Station to display
            //vynulování fotografií z VM, aby se nezobrazovaly u stanic, které nemají vlastní fotografie
            App.ViewModel.PhotosDetailsStation = null;           
        }
        public PhotoPage()
        {
            this.InitializeComponent();
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += navigationHelper_LoadState;

            
            object obj;
            isApplicable = false;
            if (!localSettings.Containers["AppSettings"].Values.TryGetValue("useGPS", out obj))
            {
                localSettings.Containers["AppSettings"].Values.Add("useGPS", true);

                isApplicable = true;
            }
            else
            {
                bool? x = obj as bool?;
                if (x != null)
                {
                    isApplicable = x.Value;
                }
            }
        }