示例#1
0
        public void Load(INIFile ConnectionFile)
        {
            string name = ConnectionFile.GetValue("Transport", "Name");

            SelectTransport(name);
            Transport.ConfigData.Load(ConnectionFile, "Transport");

            name = ConnectionFile.GetValue("Modem", "Name");
            SelectModem(name);
            Modem.ConfigData.Load(ConnectionFile, "Modem");

            name = ConnectionFile.GetValue("Terminal", "Name");
            SelectTerminal(name);
            Terminal.ConfigData.Load(ConnectionFile, "Terminal");

            SetEvents();
        }
示例#2
0
 public Connection(INIFile ConfigFile)
 {
     LoadDefaultSettings();
     Load(ConfigFile);
 }