Exemple #1
0
        public String getCode()
        {
            Int32 date = 0x00;

            for (int i = 7; i >= 0; i--)
            {
                date <<= 1;
                date  |= dic[(char)(97 + i)];
            }

            if (ode.Equals(Ode.anode))
            {
                date = ~date;
            }

            String s = Convert.ToString(date, 16);

            if (s.Length < 2)
            {
                return(s.PadLeft(2, '0'));
            }
            return(s.Substring(s.Length - 2, 2));
            //return s;
        }