예제 #1
0
 void Instance_StatusChanged(object sender, System.Device.Location.GeoPositionStatusChangedEventArgs e)
 {
     Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         SetStatus();
     });
 }
예제 #2
0
        public virtual void OnPositionStatusChanged(GeoPositionStatusChangedEventArgs e)
        {
            EventHandler <GeoPositionStatusChangedEventArgs> t = StatusChanged;

            if (t != null)
            {
                t(this, e);
            }
        }
예제 #3
0
        protected void OnPositionStatusChanged(GeoPositionStatusChangedEventArgs e)
        {
            Utility.Trace("GeoCoordinateWatcher.OnPositionStatusChanged: " + e.Status.ToString());
            EventHandler <GeoPositionStatusChangedEventArgs> t = StatusChanged;

            if (t != null)
            {
                t(this, e);
            }
        }
예제 #4
0
        void OnInternalStatusChanged(object sender, GeoPositionStatusChangedEventArgs e)
        {
            PostEvent(OnPositionStatusChanged, new GeoPositionStatusChangedEventArgs(e.Status));

            OnPropertyChanged("Status");
        }