Exemplo n.º 1
0
        public NetConfig GetNetworkConfig()
        {
            NetConfig netCfg = new NetConfig();

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

            return(netCfg);
        }
Exemplo n.º 2
0
 public void SetNetworkConfig(NetConfig xNetCfg)
 {
     IniWriteValue("NetConfig", "ipaddr", xNetCfg.IpAddr);
     IniWriteValue("NetConfig", "port", xNetCfg.Port.ToString());
 }