private void CompletedReadScanBdPropertyCallBack(CompletedReadScanBdPropInfo info)
 {
     if (info.ReadRes == ReadConfigRes.Succeed)
     {
         ScanBoardProperty scanBdProperty = new ScanBoardProperty();
         info.ScanBdProperty.CopyTo(scanBdProperty);
         SetBright(true, scanBdProperty.Brightness);
         _autoReadEvent.Set();
     }
     else
     {
         if (_current_ScannerInfo.IsUserRedundancy)
         {
             SetBright(false, 0);
             _autoReadEvent.Set();
         }
         else
         {
             _current_ScannerInfo.IsUserRedundancy = true;
             _current_ScannerInfo.ScannerProperty.ReadScanBd200ParasInfo(_current_ScannerInfo.ScanRedundancyPosition, CompletedReadScanBdPropertyCallBack);
         }
     }
 }
        private void CompletedReadScanBoardProp(CompletedReadScanBdPropInfo info)
        {
            string operateStr = "";

            CommMsgType commType = CommMsgType.Information;

            if (info.ReadRes == ReadConfigRes.Succeed)
            {
                _scanBdProp = info.ScanBdProperty;
                ChipType chipType = _scanBdProp.StandardLedModuleProp.DriverChipType;
                _chipConfig = ChipRegistorConfigFactory.GetChipRegistorConfig(chipType);

                if (ChipInherDict.ContainsKey(chipType))
                {
                    _curChipInfo = ChipInherDict[chipType];
                    IsSupportCurrentGain = _curChipInfo.IsSupportCurrentGain;
                }
                else
                {
                    IsSupportCurrentGain = false;
                }
                UpdateScanBdPropToUI(info.ScanBdProperty);

                CommonStaticMethod.GetLanguageString("读取参数成功!", "Lang_Bright_ReadParams_Succeed", out operateStr);
                commType = CommMsgType.Information;
            }
            else
            {
                _scanBdProp = new ScanBoardProperty();
                IsSupportCurrentGain = false;
                string msg = "";
                CommonStaticMethod.GetLanguageString("读取芯片类型失败!", "Lang_Bright_ReadChipFailed", out msg);
                ChipName = msg;

                CommonStaticMethod.GetLanguageString("读取参数失败!", "Lang_Bright_ReadParams_Failed", out operateStr);
                commType = CommMsgType.Error;
            }

            //NotifyMessage(this, new NotifyMessageEventArgs(new CommMsg() { Msg = operateStr, MsgType = commType }));
        }