public static Dictionary <string, string> GetEnumList(string path) { LangProperties langProperties = GetLangProperties(path, LangType.Enum); if (langProperties == null) { return(null); } return(langProperties.GetItems(PropertyType.Caption)); }
public static Dictionary <string, string> GetEnumList(PropertyDescriptor pd) { string className = string.Empty; string propName = string.Empty; if (!TryFindResourcePath(pd, ref className, ref propName)) { return(null); } LangProperties langProperties = GetLangProperties(className, LangType.Enum); if (langProperties == null) { return(null); } return(langProperties.GetItems(PropertyType.Caption)); }