Exemple #1
0
        internal void LoadSettings()
        {
            string s1 = "";
            string s2 = "";

            IniFile.SetFileName(fileName);

            s1 = IniFile.GetString(sectionName, "tx_p", "");
            s2 = IniFile.GetString(sectionName, "tx_f", "");

            if (String.IsNullOrEmpty(s1) || String.IsNullOrEmpty(s2))
            {
                return;
            }

            //校准表的行数目
            int N = IniFile.CountOfItemIn(s1);

            //校准表的列数目
            int M = IniFile.CountOfItemIn(s2);

            if ((N <= 0) || (M <= 0))
            {
                return;
            }

            rowHead.Parse(s2, M);

            colHead.Parse(s1, N);

            FillTable(N, M);
        }