示例#1
0
文件: Language.cs 项目: okrekov/CAPI
 public void Remove(Language_Enum loLanguage, string lsKey)
 {
     if (m_Dict.ContainsKey(loLanguage.ToString() + '_' + lsKey))
     {
         m_Dict.Remove(loLanguage.ToString() + '_' + lsKey);
     }
 }
示例#2
0
文件: Language.cs 项目: okrekov/CAPI
 public string Get(Language_Enum loLanguage, string lsKey)
 {
     if (m_Dict.ContainsKey(loLanguage.ToString() + '_' + lsKey))
     {
         return(m_Dict[loLanguage.ToString() + '_' + lsKey]);
     }
     else
     {
         return("Key: " + loLanguage.ToString() + '_' + lsKey);
     }
 }
示例#3
0
文件: Language.cs 项目: okrekov/CAPI
        private System.Collections.Generic.List <string> GetLanguageKeyList(Language_Enum loLanguage)
        {
            System.Collections.Generic.List <string> loList = new System.Collections.Generic.List <string>();

            foreach (string lsKey in m_Dict.Keys)
            {
                if (lsKey.IndexOf(loLanguage.ToString() + "_") == 0)
                {
                    loList.Add(lsKey);
                }
            }
            return(loList);
        }
示例#4
0
文件: Language.cs 项目: okrekov/CAPI
 public void Add(Language_Enum loLanguage, string lsKey, string lsText)
 {
     m_Dict.Add(loLanguage.ToString() + '_' + lsKey, lsText);
 }