Exemplo n.º 1
0
        /// <summary>
        /// Is called, when an location changed event occures.
        /// </summary>
        /// <param name="sender">Sender.</param>
        /// <param name="e">Event arguments.</param>
        private void OnRefreshLocation(Object sender, WF.Player.Location.LocationChangedEventArgs e)
        {
            GPSLocation loc = Main.GPS.Location;

            if (engine != null && !loc.Equals(engine.Latitude, engine.Longitude, engine.Altitude, engine.Accuracy))
            {
                engine.RefreshLocation(loc.Latitude, loc.Longitude, loc.Altitude, loc.Accuracy);
            }
        }
Exemplo n.º 2
0
        public void OnLocationChanged(object sender, WF.Player.Location.LocationChangedEventArgs e)
        {
            var textCoordText = FindViewById <TextView> (Resource.Id.textCoordText);

            textCoordText.Text = e.Location.HasAccuracy ? GetString(Resource.String.main_active_location) : GetString(Resource.String.main_last_known_location);

            var textCoords = FindViewById <TextView> (Resource.Id.textCoords);

            textCoords.Text = e.Location.ToString();

            var textAccuracy = FindViewById <TextView> (Resource.Id.textAccuracy);

            textAccuracy.Text = String.Format("{0:0} m", e.Location.Accuracy);
        }
 void OnRefreshLocation(object sender, WF.Player.Location.LocationChangedEventArgs e)
 {
 }