Esempio n. 1
0
 /// </summary>
 /// <param name="TypeName"></param>
 /// <param name="objectCode"></param>
 /// <returns></returns>
 public static string GetNameByCode(string TypeName, object objectCode)
 {
     if (objectCode == null)
     {
         return(string.Empty);
     }
     return(StringItem.GetNameByCode(TypeName, objectCode.ToString()));
 }
Esempio n. 2
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));
            }
        }
Esempio n. 3
0
 public static string GetNameByCode <T>(string code) where T : BaseDict
 {
     return(StringItem.GetNameByCode(typeof(T), code));
 }