Beispiel #1
0
        /// <summary>
        /// 通过枚举获取index。
        /// </summary>
        /// <param name="tEnum"></param>
        /// <returns></returns>
        private int GetLangueIndex(LangueMode tEnum)
        {
            int nIndex = 0;

            switch (tEnum)
            {
            case LangueMode.CN:
                nIndex = 1;
                break;

            case LangueMode.EN:
                nIndex = 2;
                break;
            }
            return(nIndex);
        }
Beispiel #2
0
 public LangueInfo(string Name, LangueMode ID, string Value)
 {
     this.Name  = Name;
     this.ID    = ID;
     this.Value = Value;
 }