/// <summary> /// Gets default GPS setting data if it is there /// </summary> /// <returns>GPSSetting or null</returns> public async Task <GPSSetting> GetSetting() { var settingsStore = new GPSSettingStore(); GPSSetting setting = await settingsStore.GetAsync(); return(setting); }
/// <summary> /// Creates a gpsSettingStore and runs InitSettings /// </summary> public GPSViewModel() { Title = "GPS"; this.gpsSettingStore = gpsSettingStore ?? new GPSSettingStore(); SavedDest = ""; SavedMode = "bicycling"; Task.Run(InitSettingsAsync).Wait(); }