Esempio n. 1
0
        public static float[][] getJianCeShuJu(String FileName, int JianCeLieShu)
        {
            float[][]          res   = null;
            XmlFileInterpretor inter = new XmlFileInterpretor(FileName);

            if (inter.getFileType() != XmlFileHelper.XmlFileType.CloneSelect)
            {
                return(res);
            }
            try
            {
                res = new float[CloneSelectionDevice.SCP_TestRowNum][];
                int b = 0;
                for (int i = 0; i < CloneSelectionDevice.SCP_TestRowNum; i++)
                {
                    res[i] = new float[JianCeLieShu];
                    for (int j = 0; j < JianCeLieShu; j++)
                    {
                        res[i][j] = float.Parse(inter.getNodeMessage("v" + (b + j).ToString()));
                    }
                    b += JianCeLieShu;
                }
            }
            catch (Exception ex)
            {
                return(null);
            }
            return(res);
        }
Esempio n. 2
0
        public static float[][] getJianCeShuJu(String FileName)
        {
            float[][]          res   = null;
            XmlFileInterpretor inter = new XmlFileInterpretor(FileName);

            if (inter.getFileType() != XmlFileHelper.XmlFileType.DuoTongDaoFenXiYi)
            {
                return(res);
            }
            try
            {
                res = new float[MultiTunnelDevice.MMA_TestRowIndex][];
                int b = 0;
                for (int i = 0; i < MultiTunnelDevice.MMA_TestRowIndex; i++)
                {
                    res[i] = new float[MultiTunnelDevice.MMA_TestRowIndex];
                    for (int j = 0; j < MultiTunnelDevice.MMA_TestRowIndex; j++)
                    {
                        res[i][j] = float.Parse(inter.getNodeMessage("v" + (b + j).ToString()));
                    }
                    b += MultiTunnelDevice.MMA_TestRowIndex;
                }
            }
            catch (Exception ex)
            {
                return(null);
            }
            return(res);
        }
Esempio n. 3
0
 public static float[][] getJianCeShuJu(String FileName)
 {
     float[][] res = null;
     XmlFileInterpretor inter = new XmlFileInterpretor(FileName);
     if (inter.getFileType() != XmlFileHelper.XmlFileType.DuoTongDaoFenXiYi) return res;
     try
     {
         res = new float[MultiTunnelDevice.MMA_TestRowIndex][];
         int b = 0;
         for (int i = 0; i < MultiTunnelDevice.MMA_TestRowIndex; i++)
         {
             res[i] = new float[MultiTunnelDevice.MMA_TestRowIndex];
             for (int j = 0; j < MultiTunnelDevice.MMA_TestRowIndex; j++)
                 res[i][j] = float.Parse(inter.getNodeMessage("v" + (b + j).ToString()));
             b += MultiTunnelDevice.MMA_TestRowIndex;
         }
     }
     catch (Exception ex)
     {
         return null;
     }
     return res;
 }
Esempio n. 4
0
 public static float[][] getJianCeShuJu(String FileName, int JianCeLieShu)
 {
     float[][] res = null;
     XmlFileInterpretor inter = new XmlFileInterpretor(FileName);
     if (inter.getFileType() != XmlFileHelper.XmlFileType.CloneSelect) return res;
     try
     {
         res = new float[CloneSelectionDevice.SCP_TestRowNum][];
         int b = 0;
         for (int i = 0; i < CloneSelectionDevice.SCP_TestRowNum; i++)
         {
             res[i] = new float[JianCeLieShu];
             for (int j = 0; j < JianCeLieShu; j++)
                 res[i][j] = float.Parse(inter.getNodeMessage("v" + (b + j).ToString()));
             b += JianCeLieShu;
         }
     }
     catch (Exception ex)
     {
         return null;
     }
     return res;
 }