Exemple #1
0
        private void MainFormClosed(object sender, FormClosedEventArgs e)
        {
            fsodb.Disconnect();

            IniFile ini = new IniFile("");
            ini.Reset();

            ini.WriteForm(this);
            ini.WriteDir("dataDir", fdataDir);
            ini.WriteDir("iniDir", finiDir);

            ini.WriteReal("south", fsouth);
            ini.WriteReal("north", fnorth);
            ini.WriteReal("west", fwest);
            ini.WriteReal("east", feast);

            ini.WriteStr("login", login_.Text);
            ini.WriteStr("password", password_.Text);

            int i = 0;
            foreach (string key in classList)
            {
                i++;
                ini.WriteStr(String.Format("!key{0}",i), key);
            }

            fclient.Stop();

            dmw.draw_Vector(0, 0, 0, null, null);
            dmw.Disconnect();
        }