public CacheList()
        {
            _appState      = AppState.GetInstance();
            _geolocator    = new GpsTracker();
            _searchService = new GeocacheSearchService();

            this.InitializeComponent();
        }
Beispiel #2
0
        public MainPage()
        {
            this.InitializeComponent();
            this.NavigationCacheMode = NavigationCacheMode.Required;

            _compass = Compass.GetDefault();
            if (_compass != null)
            {
                uint minReportingInterval = _compass.MinimumReportInterval;
                _desiredReportInterval = minReportingInterval > 15 ? minReportingInterval : 15;
                EnableCompass();
            }

            _geolocator      = new GpsTracker();
            _searchService   = new GeocacheSearchService();
            _runtimeSettings = AppState.GetInstance();

            Application.Current.Resuming += CurrentOnResuming;
        }