コード例 #1
0
ファイル: CloneSelectFileHelper.cs プロジェクト: hxd3/GTL2
        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);
        }
コード例 #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);
        }
コード例 #3
0
ファイル: DuoTongDaoFileHelper.cs プロジェクト: hxd3/GTL2
 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;
 }
コード例 #4
0
ファイル: CloneSelectFileHelper.cs プロジェクト: hxd3/GTL2
 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;
 }