Example #1
0
 public static void LocationChange(double NewLatitude, double NewLongitude)
 {
     if (NewLongitude - CurrentLongitude > MaxChange || NewLatitude - CurrentLatitude > MaxChange)
     {
         CurrentLongitude = NewLongitude;
         CurrentLatitude  = NewLatitude;
         var setting = new Models.GlobalSetting()
         {
             Name = GlobalSettingLocationKey
         };
         setting.KeyValues["latitude"]  = NewLatitude.ToString();
         setting.KeyValues["longitude"] = NewLongitude.ToString();
         GlobalDb.GlobalSetting.AddOrUpdate(setting);
         AppSettings.ResetLocation();
     }
 }
Example #2
0
 public async Task AddOrUpdateAsync(Models.GlobalSetting setting)
 {
     await Task.FromResult(0);
 }