Exemplo n.º 1
0
        public PrimDalsa(XmlNode xmlNode)
        {
            if (xmlNode != null)
            {
                _config = XMLHelper.XMLToObject(xmlNode, typeof(DalsaConfig)) as DalsaConfig;
            }
            else
            {
                return;
            }

            if (_core == null)
            {
                _core = new DalsaCore(_config, Name);
                _core.DalsaImageArrivedHandle += _core_DalsaImageArrivedHandle;
                _core.ObjSize = _config.Width * _config.Height;
                _core.Online  = true;
            }

            PrimConfigUI = new PrimConfigControl();
            ((PrimConfigControl)PrimConfigUI).SetDalsaCore(_core);
            ((PrimConfigControl)PrimConfigUI).SetDalsaConfig(_config);

            PrimDebugUI  = new PrimDebugControl();
            PrimOutputUI = new PrimOutputControl();
        }
Exemplo n.º 2
0
        public PrimDalsa()
        {
            _config = new DalsaConfig();

            if (_core == null)
            {
                _core = new DalsaCore(_config, Name);
                _core.DalsaImageArrivedHandle += _core_DalsaImageArrivedHandle;
                _core.ObjSize = _config.Width * _config.Height;
                _core.Online  = true;
            }

            PrimConfigUI = new PrimConfigControl();
            ((PrimConfigControl)PrimConfigUI).SetDalsaCore(_core);
            ((PrimConfigControl)PrimConfigUI).SetDalsaConfig(_config);

            PrimDebugUI  = new PrimDebugControl();
            PrimOutputUI = new PrimOutputControl();
        }