Пример #1
0
        public async void UpdateConfig()
        {
            try
            {
                await UpdateSpecificConfigAsync(ConfigType.NotificationFlag, NotificationToggleValue.ToString());
                await UpdateSpecificConfigAsync(ConfigType.NotificationSpanMinute, NotificationSpanMinuteValue);
                await UpdateSpecificConfigAsync(ConfigType.Language, GetLanguageConfig().ToString());

                CommonViewModel.LangSetting = GetLanguageConfig().ToString();
            }
            catch
            {
                CommonViewModel.NotifySystemMessage(GetLangMessage.GetMessage("Exception"));
            }
        }
Пример #2
0
 public async void UpdateConfig()
 {
     await UpdateSpecificConfig(ConfigType.NotificationFlag, NotificationToggleValue.ToString());
     await UpdateSpecificConfig(ConfigType.NotificationSpanMinute, NotificationSpanMinuteValue);
 }