Ejemplo n.º 1
0
        public static int[] Transcoding(string cmd)
        {
            VK KeyList = new VK();

            int[]     Kcode = new int[2];
            string [] tmp   = cmd.Split(',');
            if (tmp[0] == "0")
            {
                Kcode[0] = 0;
            }
            else
            {
                Kcode[0] = Convert.ToInt32(KeyList.GetType().GetField("Key_" + tmp[0]).GetValue(KeyList));
            }
            Kcode[1] = Convert.ToInt32(KeyList.GetType().GetField("Key_" + tmp[1]).GetValue(KeyList));
            return(Kcode);
        }