Files
mapo-iob-libs/EgwProxy.Icoel.Test/INI/BatchDetails.cs
T
Samuele Locatelli a2171e643d Aggiunta proxy iniziale:
- FTP
- Gomba
- Icoel
- MultiCcn
- OSAI
- SqlDB
2024-12-23 09:01:29 +01:00

63 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EgwProxy.Icoel.INI
{
class BatchDetails
{
private const string NameFile = "batch.ini";
private readonly IniFile _sett;
public BatchDetails()
{
_sett = new IniFile();
}
public string GrowerCode
{
get { return _sett.GetKeyValue("Batch", "GrowerCode"); }
set { _sett.SetKeyValue("Batch", "GrowerCode", value); }
}
public string GrowerName
{
get { return _sett.GetKeyValue("Batch", "GrowerName"); }
set { _sett.SetKeyValue("Batch", "GrowerName", value); }
}
public string Comment1
{
get { return _sett.GetKeyValue("Batch", "Comment1"); }
set { _sett.SetKeyValue("Batch", "Comment1", value); }
}
public string Comment2
{
get { return _sett.GetKeyValue("Batch", "Comment2"); }
set { _sett.SetKeyValue("Batch", "Comment2", value); }
}
public string Comment3
{
get { return _sett.GetKeyValue("Batch", "Comment3"); }
set { _sett.SetKeyValue("Batch", "Comment3", value); }
}
public void Load()
{
if (!File.Exists(NameFile))
{
var fs = File.Create(NameFile);
fs.Close();
}
_sett.Load(NameFile, false);
}
public void Save()
{
_sett.Save(NameFile);
}
}
}