public void SaveSettings(MobileSetting setting) { using (var syncRepository = _syncMobileRepositoryFactory()) { syncRepository.SaveSettings(setting.ToEntityModel()); } }
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.ActionLocationSourceSettings)); } } else if (mobileSetting == MobileSetting.Data) { Xamarin.Forms.Forms.Context.StartActivity(new Android.Content.Intent(Android.Provider.Settings.ActionDateSettings)); } }