Пример #1
0
 void position_Error(object sender, RisingMobility.Mobile.Location.ErrorEventArgs e)
 {
     Program.Location.PollHit -= new EventHandler(position_LocationChanged);
     Program.Location.Error   -= new RisingMobility.Mobile.Location.ErrorEventHandler(position_Error);
     ShowError("Could not get your location, try again later.");
     Log.RegisterLog("lbs", e.Error);
 }
Пример #2
0
 void pos_Error(object sender, RisingMobility.Mobile.Location.ErrorEventArgs e)
 {
     if (Log.RegisterLog("lbs", e.Error))
     {
         Deactivate();
         ShowError("Cannot get position from network.");
     }
 }
Пример #3
0
 static void pos_Error(object sender, RisingMobility.Mobile.Location.ErrorEventArgs e)
 {
     Debug.WriteLine("  * " + e.Error.GetType().FullName + ": " + e.Error.Message);
     waithandle.Set();
 }