Beispiel #1
0
        private void FormServer_Load(object sender, EventArgs e)
        {
            int x1, y1, x2, y2;

            ini = new iniFile("");

            ini.ChangeFileName(".\\ComServer.ini");

            x1       = int.Parse(ini.GetString("Form", "LocX", "0"));
            y1       = int.Parse(ini.GetString("Form", "LocY", "0"));
            Location = new Point(x1, y1);

            x2   = int.Parse(ini.GetString("Form", "SizeX", "500"));
            y2   = int.Parse(ini.GetString("Form", "SizeY", "500"));
            Size = new Size(x2, y2);

            splitContainer1.SplitterDistance = int.Parse(ini.GetString("Form", "Splitter", "300"));
        }