private void RequestComplete(PackageResults packageRes, CommResults comRes, AckResults ackType, string strTag)
        {
            #region 操作类型
            string operateStr = "";
            if (strTag == "SetGlobalBrightness")
            {
                CommonStaticMethod.GetLanguageString("设置亮度", "Lang_Bright_SetGlobalBrightness", out operateStr);
            }
            else if (strTag == "SetRedBrightness")
            {
                CommonStaticMethod.GetLanguageString("设置红色亮度", "Lang_Bright_SetRedBrightness", out operateStr);
            }
            else if (strTag == "SetGreenBrightness")
            {
                CommonStaticMethod.GetLanguageString("设置绿色亮度", "Lang_Bright_SetGreenBrightness", out operateStr);
            }
            else if (strTag == "SetBlueBrightness")
            {
                CommonStaticMethod.GetLanguageString("设置蓝色亮度", "Lang_Bright_SetBlueBrightness", out operateStr);
            }
            else if (strTag == "SetGamma")
            {
                CommonStaticMethod.GetLanguageString("设置Gamma", "Lang_Bright_SetRedGammaTable", out operateStr);
            }
            else if (strTag == "SetParameterStore2SpiFlash_Complete")
            {
                CommonStaticMethod.GetLanguageString("保存配置", "Lang_Bright_SaveScanBdConfig", out operateStr);
            }
            else if (strTag == "SetCurrentGain")
            {
                CommonStaticMethod.GetLanguageString("设置电流增益", "Lang_Bright_SetCurrentGain", out operateStr);
            }
            #endregion

            string resStr = "";
            CommonStaticMethod.GetLanguageString("结果", "Lang_Bright_Result", out resStr);
            string errStr = "";

            CommMsgType commMsgType = CommMsgType.Information;

            if (ackType != AckResults.ok
               || comRes != CommResults.ok
               || packageRes != PackageResults.ok)
            {
                commMsgType = CommMsgType.Error;

                if (packageRes == PackageResults.timeOut)
                {
                    CommonStaticMethod.GetLanguageString("失败!原因:超时!", "Lang_Bright_Timeout", out errStr);
                }
                else
                {
                    CommonStaticMethod.GetLanguageString("失败!原因:未知!", "Lang_Bright_Unkonwn", out errStr);
                }
            }
            else
            {
                CommonStaticMethod.GetLanguageString("成功!", "Lang_Bright_Success", out errStr);
                
            }

            string msg = operateStr + "," + resStr + "-" + errStr;
            //NotifyMessage(this, new NotifyMessageEventArgs(new CommMsg() { Msg = msg, MsgType = commMsgType }));
        }
        private void RequestComplete(PackageResults packageRes, CommResults comRes, AckResults ackType, string strTag, PackageBase pack)
        {
            if (ackType != AckResults.ok
               || comRes != CommResults.ok
               || packageRes != PackageResults.ok)
            {
                if (strTag == "SetSaveSendCardsParameters")
                {
                    _isSaveToHWSuccessful = false;
                }
                if (strTag == "SetParameterStore2SpiFlash")
                {
                    string msg = "";
                    
                    msg = "保存信息到硬件失败!";
                    GetLangString(msg, "Lang_ScreenInfo_SaveDataFailt", out msg);

                    SendTextToMessageBox(msg, MessageBoxImage.Error);
                    CloseProcessForm();

                    return;
                }
                if (strTag == "SetReturnFactoryValues")
                {
                    string msg = "";
                    msg = "返回出厂设置失败!";
                    GetLangString(msg, "Lang_ScreenInfo_ReturnFactoryData", out msg);

                    SendTextToMessageBox(msg, MessageBoxImage.Error);
                    CloseProcessForm();

                    return;
                }
            }
            else
            {
                if (strTag == "SetParameterStore2SpiFlash")
                {
                    CustomTransform.Delay(SpecialPackTimeOut.SAVE_PARAMS_TIMEOUT * 1000, 60);
                    string msg = string.Empty;
                    msg = "保存信息到硬件成功!";
                    GetLangString(msg, "Lang_ScreenInfo_SendToHWSuccess", out msg);

                    _isSendDataToHW = false;

                    //if (_globalParams.AllBaseInfo.AllInfoDict.ContainsKey(pack.PortName))
                    //{
                    //    List<ILEDDisplayInfo> infoList = _globalParams.AllBaseInfo.AllInfoDict[pack.PortName].LEDDisplayInfoList;
                    //    infoList.Clear();
                    //    for (int i = 0; i < _oldDisplayList.Count; i++)
                    //    {
                    //        infoList.Add(_oldDisplayList[i]);
                    //    }
                    //}

                    SendTextToMessageBox(msg, MessageBoxImage.Exclamation);                    
                    CloseProcessForm();
                    Messenger.Default.Send<string>("", MsgToken.MSG_SCREENINFO_CHANGED);
                }
                else if (strTag == "SetReturnFactoryValues")
                {
                    SpecialPackageRequest spcPack = new SpecialPackageRequest(SpecialPackID.RETURN_FACTORY_ID,
                        SpecialPackTimeOut.RETURN_FACTORY);
                    int curID;
                    _serverProxy.SendEndRequestSpecialPacke(spcPack, out curID);

                    RedundancyInfoAccessor reduInfoAccessor = new RedundancyInfoAccessor(_serverProxy, _hwCardType, _selectedPortName);
                    HWSoftwareSpaceRes res = reduInfoAccessor.ClearHWReduInfo(OnClearReduInfoComplete);
                    if (res != HWSoftwareSpaceRes.OK)
                    {
                        string msg = "";
                        msg = "返回出厂设置失败!";
                        GetLangString(msg, "Lang_ScreenInfo_ReturnFactoryData", out msg);

                        SendTextToMessageBox(msg,MessageBoxImage.Error);                                            
                        CloseProcessForm();
                        return;
                    }
                }
            }
        }