コード例 #1
0
        internal static string SaveRegion(string regionName)
        {
            var region = I18nLanguages.CheckRegionName(regionName);

            ApplicationData.Current.RoamingSettings.Values["Region"] = region;
            return(region);
        }
コード例 #2
0
 public void Save()
 {
     SettingsHelper.SaveQuality(_selectedQuality);
     SettingsHelper.SaveRegion(_selectedRegion);
     SettingsHelper.SaveTheme(_selectedApplicationTheme);
     SettingsHelper.SaveLanguage(_selectedLanguage);
     SettingsHelper.SaveAutoplayVideo(_isAutoplayVideo);
     SettingsHelper.SaveIsLargeItems(_isLargeItems);
     _getDataSource().Update(I18nLanguages.CheckRegionName(_selectedRegion), _selectedQuality);
 }