Exemple #1
0
        public static int LookUpImgIndexForKeyword(KeywordSource source, KeywordType type)
        {
            string str = Enum.GetName(typeof(KeywordSource), source) + Enum.GetName(typeof(KeywordType), type);

            if (keywordIndex.ContainsKey(str))
            {
                return(keywordIndex[str]);
            }
            else
            {
                return(-1);
            }
        }
 public CodeKeyword(string text, KeywordSource source, KeywordType type)
 {
     this.text   = text.Trim();
     this.source = source;
     this.type   = type;
 }
 public static int LookUpImgIndexForKeyword(KeywordSource source, KeywordType type)
 {
     string str = Enum.GetName(typeof(KeywordSource), source) + Enum.GetName(typeof(KeywordType), type);
     if (keywordIndex.ContainsKey(str))
         return keywordIndex[str];
     else
         return -1;
 }
 public CodeKeyword(string text, KeywordSource source, KeywordType type)
 {
     this.text = text.Trim();
     this.source = source;
     this.type = type;
 }