Example #1
0
        // Events
        // :Navigation
        protected override void OnRemovedFromJournal(System.Windows.Navigation.JournalEntryRemovedEventArgs e)
        {
            // Set GPS service off
            _locationService.StopService();

            // Remove handlers
            _locationService.GPSLocationChanged -= GPSLocationChanged;
            _locationService.GPSLocationChanged -= _viewModel.GPSLocationChanged;
            this.DataContext  = null;
            _runUpdater.Tick -= _timerTick;
            _runUpdater.Stop();
        }