예제 #1
0
        public void ConvertToResources(Tools.StringGroup value)
        {
            if (value.sourceString == "")
            {
                return;
            }

            //处理文件数据
            string[] result = value.ToStringGroup();
            lineName = result[0];
            for (int a = 0; a < 5; a++)
            {
                lineMessage[a] = result[a + 1];
            }
            if (result[6] == "0")
            {
                lineType = enumLineType.Bus;
            }
            else
            {
                lineType = enumLineType.Subway;
            }
            lineWait = (enumLineWait)(int.Parse(result[7]));
            for (int a = 0; a < 4; a++)
            {
                lineRuntime[a] = System.Convert.ToInt32(result[a + 8]);
            }
            lineUpStop   = new Tools.StringGroup(result[12], ",");
            lineDownStop = new Tools.StringGroup(result[13], ",");
        }
예제 #2
0
        public void ConvertToResources(Tools.StringGroup value)
        {
            if (value.sourceString == "")
            {
                return;
            }

            //处理文件数据
            string[] result = value.ToStringGroup();
            stopName      = result[0];
            stopCrossLine = new StringGroup(result[1], ",");
        }
예제 #3
0
        public void ConvertToResources(Tools.StringGroup value)
        {
            if (value.sourceString == "")
            {
                return;
            }

            //处理文件数据
            string[] result = value.ToStringGroup();
            addressGlobal = result[0];
            addressLocal  = result[1];
            developer     = result[2];
            releaseDate   = result[3];
        }
예제 #4
0
        public void ConvertToResources(Tools.StringGroup value)
        {
            if (value.sourceString == "")
            {
                return;
            }

            //处理文件数据
            string[] result = value.ToStringGroup();
            stopName = result[0];

            var cache = new StringGroup(result[1], ",");

            foreach (string item in cache.ToStringGroup())
            {
                stopExit.Add(new StringGroup(item, "#"));
            }
        }