Пример #1
0
        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);
        }
Пример #2
0
        public PrimIO7432(XmlNode xmlNode)
        {
            //xmlNode turn to _config
            if (xmlNode != null)
            {
                _config = XMLHelper.XMLToObject(xmlNode, typeof(ADLinkConfig)) as ADLinkConfig;
            }
            else
            {
                return;
            }

            PrimDebugUI  = new PrimDebugControl();
            PrimConfigUI = new PrimConfigControl(this);
            PrimOutputUI = new PrimOutputControl();

            PrimConnStat = PrimConnState.Other;
            PrimRunStat  = PrimRunState.Other;

            ((PrimConfigControl)PrimConfigUI).SetPrimConnState(PrimConnStat);
            ((PrimConfigControl)PrimConfigUI).SetPrimRunState(PrimRunStat);
        }