Esempio n. 1
0
 private static void FireChanged(Object oldValue, Object newValue, SettingsType type)
 {
     if (Changed != null)
     {
         var args = new SettingsChangedEventArgs()
         {
             Type     = type,
             OldValue = oldValue,
             NewValue = newValue
         };
         Changed(args);
     }
 }
        private void OnSettingsChanged(SettingsChangedEventArgs e)
        {
            switch (e.Type)
            {
            case SettingsType.QueryLimit:
                _venuesCache = null;
                Logger.Trace(TraceLevel.Info, "Foursquare query limit setting: " + (uint)e.NewValue + " places");
                break;

            case SettingsType.GeofenceRadius:
                Logger.Trace(TraceLevel.Info, "Geofence creation radius setting: " + (double)e.NewValue + " meters");
                break;

            case SettingsType.AutoCheckinEnabled:
                Logger.Trace(TraceLevel.Info, "Auto-checkin at Foursquare venue: " + ((bool)e.NewValue ? "on" : "off"));
                break;

            default:
                break;
            }
        }