Files
Mapo-IOB-WIN/IOB-WIN-SHELLY/AdapterFormNext.cs
T
Samuele Locatelli c89695eb60 SHELLY:
- inclusione gestione Pro3Em oltre a 1PM (ufficio)
- incluso con SIMUL_05
- preparo x test su SIM
2025-08-07 09:49:52 +02:00

60 lines
1.6 KiB
C#

using IOB_UT_NEXT;
using IOB_WIN_SHELLY.Iob;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IOB_WIN_SHELLY
{
public class AdapterFormNext : IOB_WIN_FORM.AdapterForm
{
#region Public Constructors
/// <summary>
/// Avvio MainForm
/// </summary>
/// <param name="codIOB"></param>
public AdapterFormNext(string codIOB) : base(codIOB)
{
}
#endregion Public Constructors
#region Protected Methods
/// <summary>
/// carica IOB richiesto
/// </summary>
protected override void loadIobType()
{
if (IOBConfFull != null)
{
switch (tipoScelto)
{
case tipoAdapter.Shelly:
case tipoAdapter.ShellyPm1:
iobObj = new ShellyClientGen1(this, IOBConfFull);
btnStart.Enabled = true;
break;
case tipoAdapter.ShellyPro3Em:
iobObj = new ShellyClientGen2(this, IOBConfFull);
btnStart.Enabled = true;
break;
case tipoAdapter.SIMULA:
case tipoAdapter.ND:
default:
iobObj = new IOB_WIN_FORM.Iob.Simula(this, IOBConfFull);
btnStart.Enabled = false;
break;
}
UpdateDisplTypeIobSel();
}
}
#endregion Protected Methods
}
}