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);
 }
        void gps_DeviceStateChanged(object sender, 
GpsLib.DeviceStateChangedEventArgs args)
        {
            device = args.DeviceState;
            // call the UpdateData method via the updateDataHandler so that we
            // update the UI on the UI thread
            Invoke (updateDataHandler);
        }