using IOB_UT_NEXT; using IOB_WIN_FILE.Iob; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IOB_WIN_FILE { public class AdapterFormNext: IOB_WIN_FORM.AdapterForm { /// /// Avvio MainForm /// /// public AdapterFormNext(string codIOB): base(codIOB) { } /// /// carica IOB richiesto /// protected override async Task loadIobType() { if (IOBConfFull != null) { switch (tipoScelto) { case tipoAdapter.FILE_GEN: iobObj = new IobFile.FileGen(this, IOBConfFull); btnStart.Enabled = true; break; case tipoAdapter.FILE_EUROM63: iobObj = new IobFile.FileEurom63(this, IOBConfFull); btnStart.Enabled = true; break; case tipoAdapter.FILE_SOITAAB: iobObj = new IobFile.IobFileSoitaab(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; } if (!await iobInitAsync()) { return; } UpdateDisplTypeIobSel(); } } } }