コード例 #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);
            }
        }
コード例 #2
0
 public CodeKeyword(string text, KeywordSource source, KeywordType type)
 {
     this.text   = text.Trim();
     this.source = source;
     this.type   = type;
 }
コード例 #3
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;
 }
コード例 #4
0
 public CodeKeyword(string text, KeywordSource source, KeywordType type)
 {
     this.text = text.Trim();
     this.source = source;
     this.type = type;
 }