public void SaveSettings(MobileSetting setting)
 {
     using (var syncRepository = _syncMobileRepositoryFactory())
     {
         syncRepository.SaveSettings(setting.ToEntityModel());
     }
 }
Beispiel #2
0
 public void OpenSetting(MobileSetting mobileSetting)
 {
     if (mobileSetting == MobileSetting.Location)
     {
         if (!LocationManager.IsProviderEnabled(LocationManager.GpsProvider))
         {
             Xamarin.Forms.Forms.Context.StartActivity(new Android.Content.Intent(Android.Provider.Settings.ActionLocat‌​ionSourceSettings));
         }
     }
     else if (mobileSetting == MobileSetting.Data)
     {
         Xamarin.Forms.Forms.Context.StartActivity(new Android.Content.Intent(Android.Provider.Settings.ActionDateSettings));
     }
 }