Пример #1
0
 protected override bool SetValueEx(string name, string newvalue)
 {
     if (name == "Tag")
     {
         Tag = DHelper.HexString2Int(newvalue);
         return(true);
     }
     else
     {
         return(base.SetValueEx(name, newvalue));
     }
 }
Пример #2
0
        public int GetTag()
        {
            string strG = GetGroupString();
            string strE = GetElementString();

            if (strG.Length < 1 || strE.Length < 1)
            {
                return(0);
            }
            int tag = DHelper.HexString2Int(strG + strE);

            return(tag);
        }
Пример #3
0
        public int GetTag(int depth)
        {
            if (depth < 0)
            {
                return(0);
            }
            int gIndex = depth * 4;
            int eIndex = depth * 4 + 1;

            string[] strlist = Path.Split(DPath.Seperator);
            if (strlist.Length <= eIndex)
            {
                return(0);
            }

            string gStr = strlist[gIndex];
            string eStr = strlist[eIndex];

            return(DHelper.HexString2Int(gStr + eStr));
        }