protected void gps_LocationChanged(object sender, GpsLib.LocationChangedEventArgs args) { position = args.Position; // call the UpdateData method via the updateDataHandler so that we // update the UI on the UI thread Invoke (updateDataHandler); }
protected void gps_LocationChanged(object sender, GpsLib.LocationChangedEventArgs args) { position = args.Position; // call the UpdateData method via the updateDataHandler so that we // update the UI on the UI thread Invoke(updateDataHandler); }
public Boolean Moved(GpsLib.GpsPosition posObj) { answer = ComputeLatLonDistance(lat, lon, posObj.dblLatitude, posObj.dblLongitude); if (answer >= 0.05) { lat = posObj.dblLatitude; lon = posObj.dblLongitude; return(true); } else { return(false); } }