public override void Loaded() { base.Loaded(); //settings init = true; EnableCloudBackup = _settingsStore.CloudEnabled; init = false; DailyGoal = _unitHelper.GetAmount(_settingsStore.DailyGoal).ToString(); QuietHoursEnabled = _settingsStore.QuietHoursEnabled; QuietHoursStart = _settingsStore.QuietHoursStart; QuietHoursEnd = _settingsStore.QuietHoursEnd; // Intervals Intervals.Add(new IntervalItem() { Name = _resourceRepository.GetString("remind15Min"), Value = 1 }); Intervals.Add(new IntervalItem() { Name = _resourceRepository.GetString("remind30Min"), Value = 2 }); Intervals.Add(new IntervalItem() { Name = _resourceRepository.GetString("remind45Min"), Value = 3 }); Intervals.Add(new IntervalItem() { Name = _resourceRepository.GetString("remind60Min"), Value = 4 }); Intervals.Add(new IntervalItem() { Name = _resourceRepository.GetString("remind120Min"), Value = 8 }); SelectedInterval = Intervals.FirstOrDefault(i => i.Value == _settingsStore.NotificationInterval); // Unit Systems UnitSystems.Add(new UnitSystemItem() { Id = 0, Name = _resourceRepository.GetString("unitMetric") }); UnitSystems.Add(new UnitSystemItem() { Id = 1, Name = _resourceRepository.GetString("unitUSImperial") }); SelectedUnitSystem = UnitSystems.FirstOrDefault(i => i.Id == _settingsStore.UnitSystem); DailyWaterGoalHeader = String.Format(_resourceRepository.GetString("txtDailyWaterGoal"), _unitHelper.AmountText); }