public bool Start_Run() { if (_runStatus != Rstatus.Paused && _runStatus != Rstatus.Stopped) { return(false); } // subscribe to gps updates Geocoordinates geolocator = Geocoordinates.GetGeolocator(); if (_runStatus == Rstatus.Paused) { geolocator.ResumeRun(); } else // _runStatus == Rstatus.Stopped { geolocator.StartNewRun(); } geolocator.SubscribeToUpdates(); _runStatus = Rstatus.Started; CollapseAll(); ShowActive(); return(true); }
public bool Stop_Run() { if (_runStatus != Rstatus.Paused) { return(false); } Geocoordinates.GetGeolocator().StopRun(); _runStatus = Rstatus.Stopped; CollapseAll(); ShowActive(); return(true); }