public PrimIO7432() { _config = new ADLinkConfig(); PrimDebugUI = new PrimDebugControl(); PrimConfigUI = new PrimConfigControl(this); PrimOutputUI = new PrimOutputControl(); PrimConnStat = PrimConnState.Other; PrimRunStat = PrimRunState.Other; ((PrimConfigControl)PrimConfigUI).SetPrimConnState(PrimConnStat); ((PrimConfigControl)PrimConfigUI).SetPrimRunState(PrimRunStat); }
public int ImportConfig(XmlNode xmlNode) { var iRet = 0; if (xmlNode != null) { _config = XMLHelper.XMLToObject(xmlNode, typeof(ADLinkConfig)) as ADLinkConfig; } else { return(-1); } return(iRet); }
public PrimConfigControl(PrimIO7432 prim) { InitializeComponent(); _primADLink = prim; _config = _primADLink._config; }