void Instance_StatusChanged(object sender, System.Device.Location.GeoPositionStatusChangedEventArgs e) { Deployment.Current.Dispatcher.BeginInvoke(() => { SetStatus(); }); }
public virtual void OnPositionStatusChanged(GeoPositionStatusChangedEventArgs e) { EventHandler <GeoPositionStatusChangedEventArgs> t = StatusChanged; if (t != null) { t(this, e); } }
protected void OnPositionStatusChanged(GeoPositionStatusChangedEventArgs e) { Utility.Trace("GeoCoordinateWatcher.OnPositionStatusChanged: " + e.Status.ToString()); EventHandler <GeoPositionStatusChangedEventArgs> t = StatusChanged; if (t != null) { t(this, e); } }
void OnInternalStatusChanged(object sender, GeoPositionStatusChangedEventArgs e) { PostEvent(OnPositionStatusChanged, new GeoPositionStatusChangedEventArgs(e.Status)); OnPropertyChanged("Status"); }