Beispiel #1
0
        private void savecodemessage(string key, codemessagetype m1)
        {
            string path = string.Concat(new string[]
            {
                m1.allen.ToString(),
                "-",
                m1.keyword.ToString(),
                "-",
                m1.comshow.ToString(),
                "-",
                m1.mouseshow.ToString()
            });

            Kuozhan.putxmlstring(path, key);
        }
Beispiel #2
0
        private static void Loadcodemessage(string key, ref codemessagetype m1)
        {
            string text = Kuozhan.getxmlstring(key);

            if (text != "")
            {
                string[] array = text.Split(new char[]
                {
                    '-'
                });
                if (array.Length == 5)
                {
                    m1.allen     = (byte)array[0].Getint();
                    m1.keyword   = (byte)array[1].Getint();
                    m1.comshow   = (byte)array[2].Getint();
                    m1.mouseshow = (byte)array[3].Getint();
                    m1.codehig   = (byte)array[4].Getint();
                }
            }
        }