예제 #1
0
        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");
        }
예제 #2
0
 public void Save(INIFile ConnectionFile, string BlockName)
 {
     foreach (ConfigItem item in this.Values)
     {
         ConnectionFile.SetValue(BlockName, item.Name, item.Value);
     }
 }