void MainFormLoad(object sender, EventArgs e) { IniFile ini = new IniFile(""); ini.ReadForm(this); fdataDir = ini.ReadDir("dataDir"); finiDir = ini.ReadDir("iniDir"); fsouth = ini.ReadReal(59.3, "south"); fnorth = ini.ReadReal(59.4, "north"); fwest = ini.ReadReal(24.0, "west"); feast = ini.ReadReal(24.3, "east"); login_.Text = ini.ReadStr("niitp", "login"); password_.Text = ini.ReadStr("niitp", "password"); classList.Clear(); for (int i = 0; i < 256; i++) { string k = String.Format("!key{0}", i+1); string v = ini.ReadStr("", k); if (v == null) break; if (v.Length == 0) break; if (classList.IndexOf(v) < 0) classList.Add(v); } if (classList.Count == 0) { classList.Add("RivRiv"); classList.Add("Lake"); } XEdits.FloatTextBox(x1_); XEdits.FloatTextBox(y1_); XEdits.FloatTextBox(x2_); XEdits.FloatTextBox(y2_); dmw = new dmwAuto(); dmw.Connect(); dmw.draw_Vector(-20003,0,0,null,null); // wgs_coord = true dmw.draw_Vector(-20013,0,0,null,null); // int_coord = true fclient.Start(); displayFrag(null, null); }