public string GetIP() { SFLib.IniFile iniFile = new SFLib.IniFile(_iniFilePath); string ip =iniFile.ReadString("Config","IP","127.0.0.1"); _ip = ip; return _ip; }
public string GetIP() { SFLib.IniFile iniFile = new SFLib.IniFile(_iniFilePath); string ip = iniFile.ReadString("Config", "IP", "127.0.0.1"); _ip = ip; return(_ip); }
public int GetSerialPortCount() { SFLib.IniFile _iniFile = new SFLib.IniFile(_iniFilePath); int t_count = _iniFile.ReadInteger("Config", "SerialPortCount", 14); _serialPortCount = t_count; return(_serialPortCount); }
public void SaveSerialPortCount(int p_cout) { try { SFLib.IniFile iniFile = new SFLib.IniFile(_iniFilePath); _serialPortCount = p_cout; iniFile.WriteInteger("Config", "SerialPortCount", _serialPortCount); } catch { } }
public void SaveIP(string ip) { try { SFLib.IniFile iniFile = new SFLib.IniFile(_iniFilePath); _ip = ip; iniFile.WriteString("Config", "IP", _ip); } catch { } }
public void SaveIP(string ip) { try { SFLib.IniFile iniFile = new SFLib.IniFile(_iniFilePath); _ip = ip; iniFile.WriteString("Config", "IP", _ip); } catch { } }