41ddf3f64c
- progetto nuovo - spostamento dll su ExtLib livello superiore - prima compilazione
51 lines
1.5 KiB
C#
51 lines
1.5 KiB
C#
using IOB_UT_NEXT;
|
|
|
|
namespace IOB_WIN_KAWASAKI
|
|
{
|
|
public class AdapterFormNext: IOB_WIN_FORM.AdapterForm
|
|
{
|
|
|
|
/// <summary>
|
|
/// Avvio MainForm
|
|
/// </summary>
|
|
/// <param name="codIOB"></param>
|
|
public AdapterFormNext(string codIOB): base(codIOB)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// carica IOB richiesto
|
|
/// </summary>
|
|
protected override void loadIobType()
|
|
{
|
|
if (IOBConf != null)
|
|
{
|
|
switch (tipoScelto)
|
|
{
|
|
|
|
case tipoAdapter.KAWASAKI:
|
|
iobObj = new Iob.Kawasaki(this, IOBConf);
|
|
btnStart.Enabled = true;
|
|
break;
|
|
|
|
case tipoAdapter.SIMULA:
|
|
case tipoAdapter.ND:
|
|
default:
|
|
iobObj = new IOB_WIN_FORM.Iob.Simula(this, IOBConf);
|
|
btnStart.Enabled = false;
|
|
break;
|
|
}
|
|
lblCncText = $"CNC: {IOBConf.tipoIob} [{IOBConf.cncIpAddr}:{IOBConf.cncPort}]";
|
|
lblSrvUrlText = $"SRV: {IOBConf.serverData.MPIP} | URL: {IOBConf.serverData.MPURL}{IOBConf.serverData.CMDBASE}";
|
|
|
|
// aggancio evento refresh
|
|
iobObj.eh_refreshed += IobObj_eh_refreshed;
|
|
|
|
// carico i default values su interfaccia
|
|
setDefaults();
|
|
|
|
displayTaskAndLog($"Caricata conf per adapter {tipoScelto}");
|
|
}
|
|
}
|
|
}
|
|
}
|