예제 #1
0
        public static string GetNameDependonLanguage <T>(string code) where T : BaseDict
        {
            string languageName = Thread.CurrentThread.CurrentUICulture.Name.ToLower();

            if (languageName == "en")
            {
                return(StringItem.GetNameEngByCode(typeof(T), code));
            }
            else
            {
                return(StringItem.GetNameByCode(typeof(T), code));
            }
        }
예제 #2
0
 public static string GetNameEngByCode <T>(string code) where T : BaseDict
 {
     return(StringItem.GetNameEngByCode(typeof(T), code));
 }