Example #1
0
        private void GoToLatestStopPassedIfNeeded()
        {
            //Verify latest arret passed with that tablet (even if the app has been closed after the arret has been passed)
            Arret latestArret = string.IsNullOrWhiteSpace(Settings.LatestArret) ? null : JSON.DeserializeObject <Arret>(new FileAccessManager(), Settings.LatestArret, "GoToNextStopIfNeeded()");

            //If latest arret passed is of that trajet, go to this arret.
            if (latestArret != null && latestArret.m_iLocalIDtrajet == m_trajet.m_iLocalID)
            {
                m_trajet.GetArretFromLatLon(latestArret.m_lat, latestArret.m_lon, out m_currentArret, out m_nextArret);

                GoToNextStop();
            }
        }