public void Save(INIFile ConnectionFile) { ConnectionFile.SetValue("Transport", "Name", Transport.GetType().Name); Transport.ConfigData.Save(ConnectionFile, "Transport"); ConnectionFile.SetValue("Terminal", "Name", Terminal.GetType().Name); Terminal.ConfigData.Save(ConnectionFile, "Terminal"); ConnectionFile.SetValue("Modem", "Name", Modem.GetType().Name); Modem.ConfigData.Save(ConnectionFile, "Modem"); }