Exemplo n.º 1
0
        public static void SetCurrentThemeCode(string code)
        {
            string theme = code;

            if (!UtilityHelper.IsNullOrEmpty(theme))
            {
                theme = theme.Trim().ToLower();
            }

            switch (theme)
            {
            case "default":
            default:
                theme = "Default";
                break;
            }

            UtilityHelper.SetIsolatedStorage(s_ThemeCookieKey, theme);
        }
Exemplo n.º 2
0
        public static void SetCurrentLanguageCode(string code)
        {
            string language = code;

            if (!UtilityHelper.IsNullOrEmpty(language))
            {
                language = language.Trim().ToLower();
            }

            switch (language)
            {
            case "chs":
            case "zh-chs":
            case "zh-cn":
                language = "zh-CN";
                break;

            case "cht":
            case "zh-cht":
            case "zh-tw":
                language = "zh-TW";
                break;

            case "ja":
            case "ja-jp":
                language = "ja-JP";
                break;

            case "en":
            case "en-us":
            default:
                language = "zh-CN";
                break;
            }

            UtilityHelper.SetIsolatedStorage(s_LanguageCookieKey, language);
        }
Exemplo n.º 3
0
 public static void SetCurrentCompanyName(string name)
 {
     UtilityHelper.SetIsolatedStorage(s_CompanyName, name);
 }
Exemplo n.º 4
0
 public static void SetCurrentCompanyCode(string code)
 {
     UtilityHelper.SetIsolatedStorage(s_CompanyCode, code);
 }