Example #1
0
        private void ExecuteStopTravel()
        {
            Stopwatch timer = new Stopwatch();

            _locationService.IsTrailStarted = false;
            _startButtonService.SetStartButtonText("Start");
            _travelPanelService.StopTimer();
            _travelPanelService.TravelPanelVisibility = "gone";
            _travelPanelService.NumberOfReachedPoints = 0;
            _visible.Raise(false);
        }
Example #2
0
        private void StartTrail()
        {
            _locationService.OnCurrentLocationChanged(_locationService.GetNearestPoint(
                                                          _locationService.CurrentLocation, _trailService.Points));
            _locationService.SetNewList();
            _locationService.IsTrailStarted = true;

            _travelPanelService.StartTimer();
            _startButtonService.SetStartButtonText("Stop");
            _travelPanelService.TravelPanelVisibility = "visible";
            _visible.Raise(false);
        }