Beispiel #1
0
 public void BroadcastIt(string message, string id)
 {
     if (!string.IsNullOrEmpty(message) && !string.IsNullOrEmpty(id))
     {
         var info = new ChangedEventArgs(message, id);
         OnChange(this, info);
     }
 }
Beispiel #2
0
 void HandleMapChanged(object s, ChangedEventArgs ea)
 {
     if (ea.ModuleName == "updated-location")
     {
         if (lon != App.Self.Longitude || lat != App.Self.Latitude)
         {
             myMap.MoveToRegion(MapSpan.FromCenterAndRadius(new Position(App.Self.Longitude, App.Self.Latitude), Distance.FromMiles(0.3)));
             lon = App.Self.Longitude;
             lat = App.Self.Latitude;
         }
     }
 }
Beispiel #3
0
 protected void OnChange(object s, ChangedEventArgs e)
 {
     if (Change != null)
         Change(s, e);
 }