Пример #1
0
 void MoniDatareader_NotifyUpdateCfgFileResEvent(object sender, UpdateCfgFileResEventArgs e)
 {
     if (e == null || e.UpdateParams == null)
     {
         WriteLog("硬件通知为空,是不可能的事情?");
         _fLogService.Info("硬件通知为空,是不可能的事情?");
         return;
     }
     switch (e.UpdateParams.TranType)
     {
         case TransferType.M3_RefreshDataFinish:
             //if (_isNeedRetry)
             //{
             //    switch (_dataType)
             //    {
             //        case DataType.all:
             //            break;
             //        case DataType.senderData:
             //            Action actionSender = new Action(() =>
             //            {
             //                BeginReadSenderCardData(_senderRetryInfoDic);
             //            });
             //            actionSender.BeginInvoke(null, null);
             //            break;
             //        case DataType.scannerData:
             //            Action actionScan = new Action(() =>
             //            {
             //                BeginReadScanBoardData(_scanRetryInfoDic);
             //            });
             //            actionScan.BeginInvoke(null, null);
             //            break;
             //        default:
             //            break;
             //    }
             //}
             break;
         case TransferType.M3_ExecStaus:
             SendData("M3_StateData", e.UpdateParams.Content);
             break;
         case TransferType.M3_COMFindSN:
             SendData("FromCOMFindSN", e.UpdateParams.Content);
             break;
         case TransferType.M3_UpdateLedScreenConfigInfo:
             GetScreenListInfo();
             break;
         case TransferType.M3_ExecBrightResultLog:
             SendData("BrightnessLog", e.UpdateParams.Content);
             break;
         case TransferType.M3_BrightConfigSaveResult:
             SendData("BrightConfigSaveResult", e.UpdateParams.Content);
             break;
         default:
             break;
     }
 }
 private void OnNotifyUpdateCfgFileResEvent(object sender, UpdateCfgFileResEventArgs e)
 {
     if (NotifyUpdateCfgFileResEvent != null)
     {
         NotifyUpdateCfgFileResEvent(sender, e);
     }
 }