Completato fixApp x gestione ConfIOB:

- aggiunta tags su richiesta
This commit is contained in:
Samuele Locatelli
2022-12-28 12:49:30 +01:00
parent f33a91efc6
commit 56cb0966fe
4 changed files with 48 additions and 18 deletions
+31 -9
View File
@@ -1,12 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConfMan.IOB.Core
namespace ConfMan.IOB.Core
{
internal class HostData
public class HostInfo
{
#region Public Constructors
/// <summary>
/// Init classe default
/// </summary>
public HostInfo()
{ }
#endregion Public Constructors
#region Public Properties
/// <summary>
/// Indirizzo Ip dell'HOST
/// </summary>
public string HostAddr { get; set; } = "127.0.0.1";
/// <summary>
/// Nome Host
/// </summary>
public string HostName { get; set; } = "localhost";
/// <summary>
/// Sistema Operativo
/// </summary>
public string OS { get; set; } = "WIN";
#endregion Public Properties
}
}
}
+1 -1
View File
@@ -59,7 +59,7 @@ namespace ConfMan.IOB.Core
// recupero NUOVI dati TAGS
newConfObj.GeneralCom = (ComType)Enum.Parse(typeof(ComType), fIni.ReadString("TAGS", "ComType", "ND"));
newConfObj.Customer = fIni.ReadString("TAGS", "Customer", "ND");
newConfObj.HostData.OS = fIni.ReadString("TAGS", "OS", "WIN");
newConfObj.HostData.OS = fIni.ReadString("TAGS", "HostOS", "WIN");
newConfObj.HostData.HostName = fIni.ReadString("TAGS", "HostName", "localhost");
newConfObj.HostData.HostAddr = fIni.ReadString("TAGS", "HostAddr", "127.0.0.1");