コード例 #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, "#"));
            }
        }