示例#1
0
        public static void LoadConf()
        {
            try
            {
                List <string> lines = new List <string>();

                foreach (string line in File.ReadAllLines(ConfFile, StringTools.ENCODING_SJIS))
                {
                    if (line != "" && line.StartsWith(";") == false)
                    {
                        lines.Add(line);
                    }
                }

                int c = 0;

                // ---- data ----

                ClientInfoCountMax    = IntTools.ToInt(lines[c++], 1, IntTools.IMAX, 20);
                HeaderFieldCountMax   = IntTools.ToInt(lines[c++], 1, IntTools.IMAX, 20);
                ColorOkCancel         = ColorTools.FromRRGGBB(lines[c++]);
                Color行番号              = ColorTools.FromRRGGBB(lines[c++]);
                Count失敗Min_ChangeIcon = IntTools.ToInt(lines[c++], 1, IntTools.IMAX, 3);

                // ----
            }
            catch
            { }
        }