Example #1
0
        public static void setJianCeShuJu(String FileName, float[][] v, int JianCeLieShu)
        {
            if (v.Length != CloneSelectionDevice.SCP_TestRowNum)
            {
                return;
            }
            for (int i = 0; i < v.Length; i++)
            {
                if (v[i].Length != JianCeLieShu)
                {
                    return;
                }
            }

            XmlFileCreator creator = new XmlFileCreator(XmlFileHelper.XmlFileType.CloneSelect, FileName);
            int            b       = 0;

            for (int i = 0; i < CloneSelectionDevice.SCP_TestRowNum; i++)
            {
                for (int j = 0; j < JianCeLieShu; j++)
                {
                    creator.addElement("v" + (b + j).ToString(), v[i][j].ToString());
                }
                b += JianCeLieShu;
            }
            creator.save();
        }
Example #2
0
        public static void setJianCeShuJu(String FileName, float[][] v)
        {
            if (v.Length != MultiTunnelDevice.MMA_TestRowIndex)
            {
                return;
            }
            for (int i = 0; i < v.Length; i++)
            {
                if (v[i].Length != MultiTunnelDevice.MMA_TestRowIndex)
                {
                    return;
                }
            }

            XmlFileCreator creator = new XmlFileCreator(XmlFileHelper.XmlFileType.DuoTongDaoFenXiYi, FileName);
            int            b       = 0;

            for (int i = 0; i < MultiTunnelDevice.MMA_TestRowIndex; i++)
            {
                for (int j = 0; j < MultiTunnelDevice.MMA_TestRowIndex; j++)
                {
                    creator.addElement("v" + (b + j).ToString(), v[i][j].ToString());
                }
                b += MultiTunnelDevice.MMA_TestRowIndex;
            }
            creator.save();
        }
Example #3
0
        public static void setJianCeShuJu(String FileName, float[][] v)
        {
            if (v.Length != MultiTunnelDevice.MMA_TestRowIndex) return;
            for (int i = 0; i < v.Length; i++)
            {
                if (v[i].Length != MultiTunnelDevice.MMA_TestRowIndex) return;
            }

            XmlFileCreator creator = new XmlFileCreator(XmlFileHelper.XmlFileType.DuoTongDaoFenXiYi, FileName);
            int b = 0;
            for (int i = 0; i < MultiTunnelDevice.MMA_TestRowIndex; i++)
            {
                for (int j = 0; j < MultiTunnelDevice.MMA_TestRowIndex; j++)
                {
                    creator.addElement("v" + (b + j).ToString(), v[i][j].ToString());
                }
                b += MultiTunnelDevice.MMA_TestRowIndex;
            }
            creator.save();
        }
Example #4
0
        public static void setJianCeShuJu(String FileName, float[][] v, int JianCeLieShu)
        {
            if (v.Length != CloneSelectionDevice.SCP_TestRowNum) return;
            for (int i = 0; i < v.Length; i++)
            {
                if (v[i].Length != JianCeLieShu) return;
            }

            XmlFileCreator creator = new XmlFileCreator(XmlFileHelper.XmlFileType.CloneSelect, FileName);
            int b = 0;
            for (int i = 0; i < CloneSelectionDevice.SCP_TestRowNum; i++)
            {
                for (int j = 0; j < JianCeLieShu; j++)
                {
                    creator.addElement("v" + (b + j).ToString(), v[i][j].ToString());
                }
                b += JianCeLieShu;
            }
            creator.save();
        }