Пример #1
0
        public NetConfig GetNetworkConfig()
        {
            NetConfig netCfg = new NetConfig();

            netCfg.IpAddr = IniReadValue("NetConfig", "ipaddr");
            netCfg.Port   = Convert.ToInt32(IniReadValue("NetConfig", "port"));

            return(netCfg);
        }
Пример #2
0
 public void SetNetworkConfig(NetConfig xNetCfg)
 {
     IniWriteValue("NetConfig", "ipaddr", xNetCfg.IpAddr);
     IniWriteValue("NetConfig", "port", xNetCfg.Port.ToString());
 }