示例#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 int ImportConfig(XmlNode xmlNode)
        {
            var iRet = 0;

            if (xmlNode != null)
            {
                _config = XMLHelper.XMLToObject(xmlNode, typeof(ADLinkConfig)) as ADLinkConfig;
            }
            else
            {
                return(-1);
            }
            return(iRet);
        }
示例#3
0
 public PrimConfigControl(PrimIO7432 prim)
 {
     InitializeComponent();
     _primADLink = prim;
     _config     = _primADLink._config;
 }