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);
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 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);
     }
 }