a2171e643d
- FTP - Gomba - Icoel - MultiCcn - OSAI - SqlDB
70 lines
1.7 KiB
C#
70 lines
1.7 KiB
C#
using System.IO;
|
|
|
|
namespace EgwProxy.Icoel.Test.INI
|
|
{
|
|
public class Settaggi
|
|
{
|
|
#region Public Constructors
|
|
|
|
public Settaggi()
|
|
{
|
|
_sett = new IniFile();
|
|
}
|
|
|
|
#endregion Public Constructors
|
|
|
|
#region Public Properties
|
|
|
|
public string IndirizzoIpSizer
|
|
{
|
|
get { return _sett.GetKeyValue("Sizer", "IndirizzoIp"); }
|
|
set { _sett.SetKeyValue("Sizer", "IndirizzoIp", value); }
|
|
}
|
|
|
|
public string IndirizzoIpSizerClient
|
|
{
|
|
get { return _sett.GetKeyValue("Sizer", "IndirizzoIpTracciabilità"); }
|
|
set { _sett.SetKeyValue("Sizer", "IndirizzoIpTracciabilità", value); }
|
|
}
|
|
|
|
public string SizerTcpPort
|
|
{
|
|
get { return _sett.GetKeyValue("Sizer", "TcpPort"); }
|
|
set { _sett.SetKeyValue("Sizer", "TcpPort", value); }
|
|
}
|
|
|
|
public string TcpPortSizerClient
|
|
{
|
|
get { return _sett.GetKeyValue("Sizer", "TcpPortTracciabilità"); }
|
|
set { _sett.SetKeyValue("Sizer", "TcpPortTracciabilità", value); }
|
|
}
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Public Methods
|
|
|
|
public void Load()
|
|
{
|
|
if (!File.Exists(NameFile))
|
|
{
|
|
var fs = File.Create(NameFile);
|
|
fs.Close();
|
|
}
|
|
_sett.Load(NameFile, false);
|
|
}
|
|
|
|
public void Save()
|
|
{
|
|
_sett.Save(NameFile);
|
|
}
|
|
|
|
#endregion Public Methods
|
|
|
|
#region Private Fields
|
|
|
|
private const string NameFile = "conf.ini";
|
|
private readonly IniFile _sett;
|
|
|
|
#endregion Private Fields
|
|
}
|
|
} |