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); }
void pos_Error(object sender, RisingMobility.Mobile.Location.ErrorEventArgs e) { if (Log.RegisterLog("lbs", e.Error)) { Deactivate(); ShowError("Cannot get position from network."); } }
static void pos_Error(object sender, RisingMobility.Mobile.Location.ErrorEventArgs e) { Debug.WriteLine(" * " + e.Error.GetType().FullName + ": " + e.Error.Message); waithandle.Set(); }