private void SetAutoReader(string sn, string comName, ILEDDisplayInfo scrInfo, List <SenderRedundancyInfo> reduInfoList)
        {
            if (string.IsNullOrEmpty(comName) || string.IsNullOrEmpty(sn) || scrInfo == null)
            {
                return;
            }
            ScannerPropertyReader scan      = new ScannerPropertyReader(_serverProxy, comName);
            ScanBoardRegionInfo   scanBoard = null;

            scrInfo.GetFirstScanBoardInList(out scanBoard);
            if (scanBoard != null)
            {
                ScanBoardPosition pos = new ScanBoardPosition();
                pos.SenderIndex = scanBoard.SenderIndex;
                pos.PortIndex   = scanBoard.PortIndex;
                pos.ScanBdIndex = scanBoard.ConnectIndex;
                ScanBoardPosition posSlave = new ScanBoardPosition();
                if (reduInfoList != null)
                {
                    for (int j = 0; j < reduInfoList.Count; j++)
                    {
                        if (reduInfoList[j].MasterSenderIndex == scanBoard.SenderIndex &&
                            reduInfoList[j].MasterPortIndex == scanBoard.PortIndex)
                        {
                            posSlave.SenderIndex = reduInfoList[j].SlaveSenderIndex;
                            posSlave.PortIndex   = reduInfoList[j].SlavePortIndex;
                            posSlave.ScanBdIndex = scanBoard.ConnectIndex;
                        }
                    }
                }
                lock (_lockObj)
                {
                    _sn_ScannerInfos.Add(new SN_ScannerPropertyReader()
                    {
                        SN = sn,
                        ScannerProperty        = scan,
                        ScanPosition           = pos,
                        ScanRedundancyPosition = posSlave
                    });
                }
            }
            if (_sn_ScannerInfos != null && _sn_ScannerInfos.Count == 1)
            {
                if (_sn_BrightSensors == null)
                {
                    _sn_BrightSensors = new Dictionary <string, List <PeripheralsLocation> >();
                }
                _autoTimer.Change(_interval, _interval);
            }
        }
        private void ReadScanBoardProperty()
        {
            ScanBoardRegionInfo scanBdInfo;
            int index = _displayInfo.GetFirstScanBoardInList(out scanBdInfo);
            if (index == -1)
            {
                return;
            }

            ScannerPropertyReader read = new ScannerPropertyReader(_serverProxy, SelectedPort);
            read.ReadScanBd200ParasInfo(new ScanBoardPosition()
            {
                SenderIndex = scanBdInfo.SenderIndex,
                PortIndex = scanBdInfo.PortIndex,
                ScanBdIndex = scanBdInfo.ConnectIndex
            }, CompletedReadScanBoardProp);
        }