public void ShowMessage(string sendName, string recName, MessageBase sendContent, DateTime sendTime)
        {
            CallbackRecEventArgs crg = new CallbackRecEventArgs(sendName, recName, sendContent, sendTime);

            ChatEvent(this, crg);
        }
        /// <summary>
        /// 接收消息后处理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cb_reciveInfo(object sender, CallbackRecEventArgs e)
        {
            MessageBase messageBase = e.SendContent;

            if (messageBase == null)
            {
                return;
            }

            try
            {
                switch (messageBase.Name.Trim())
                {
                case "KEEP_ALIVE":
                    if (KEEP_ALIVE != null)
                    {
                        KEEP_ALIVE(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "EQP_IDENTIFICATION":
                    if (EQP_IDENTIFICATION != null)
                    {
                        EQP_IDENTIFICATION(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "EQUIP_QUERY_SV":
                    if (EQUIP_QUERY_SV != null)
                    {
                        EQUIP_QUERY_SV(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "DELETE_EVENT_LINK":
                    if (DELETE_EVENT_LINK != null)
                    {
                        DELETE_EVENT_LINK(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "EVENT_LINK":
                    if (EVENT_LINK != null)
                    {
                        EVENT_LINK(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "QUERY_EVENT_LINK":
                    if (QUERY_EVENT_LINK != null)
                    {
                        QUERY_EVENT_LINK(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "EVENT_REPORT":
                    if (EVENT_REPORT != null)
                    {
                        EVENT_REPORT(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "EVENT_ENABLE":
                    if (EVENT_ENABLE != null)
                    {
                        EVENT_ENABLE(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "EVENT_DISABLE":
                    if (EVENT_DISABLE != null)
                    {
                        EVENT_DISABLE(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "EVENT_DISABLE_ALL":
                    if (EVENT_DISABLE_ALL != null)
                    {
                        EVENT_DISABLE_ALL(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "ALARM_REPORT":
                    if (ALARM_REPORT != null)
                    {
                        ALARM_REPORT(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "CLEAR_ALARM_REPORT":
                    if (CLEAR_ALARM_REPORT != null)
                    {
                        CLEAR_ALARM_REPORT(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "EQUIP_EC_GET":
                    if (EQUIP_EC_GET != null)
                    {
                        EQUIP_EC_GET(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "EQUIP_EC_SET":
                    if (EQUIP_EC_SET != null)
                    {
                        EQUIP_EC_SET(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "ALARM_ENABLE":
                    if (ALARM_ENABLE != null)
                    {
                        ALARM_ENABLE(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "ALARM_DISABLE":
                    if (ALARM_DISABLE != null)
                    {
                        ALARM_DISABLE(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "MACH_CMD":
                    switch (messageBase.CommandName.Trim())
                    {
                    case "INHIBIT_AUTO":
                        if (MACH_CMD_INHIBIT_AUTO != null)
                        {
                            MACH_CMD_INHIBIT_AUTO(sender, new RecvCallbackArgs(messageBase));
                        }
                        break;

                    case "RELEASE_INHIBIT_AUTO":
                        if (MACH_CMD_RELEASE_INHIBIT_AUTO != null)
                        {
                            MACH_CMD_RELEASE_INHIBIT_AUTO(sender, new RecvCallbackArgs(messageBase));
                        }
                        break;

                    case "PROCESS_START":
                        if (MACH_CMD_PROCESS_START != null)
                        {
                            MACH_CMD_PROCESS_START(sender, new RecvCallbackArgs(messageBase));
                        }
                        break;

                    case "STOP_PROCESSING":
                        if (MACH_CMD_STOP_PROCESSING != null)
                        {
                            MACH_CMD_STOP_PROCESSING(sender, new RecvCallbackArgs(messageBase));
                        }
                        break;
                    }
                    break;

                case "DOWNLOAD_RECIPE_TO_RAM":
                    if (DOWNLOAD_RECIPE_TO_RAM != null)
                    {
                        DOWNLOAD_RECIPE_TO_RAM(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "UPLOAD_RAM_RECIPE":
                    if (UPLOAD_RAM_RECIPE != null)
                    {
                        UPLOAD_RAM_RECIPE(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "DELETE_RECIPE":
                    if (DELETE_RECIPE != null)
                    {
                        DELETE_RECIPE(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "QUERY_RECIPE_INFO":
                    if (QUERY_RECIPE_INFO != null)
                    {
                        QUERY_RECIPE_INFO(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "PORT_RECIPE_TO_GOLD":
                    if (PORT_RECIPE_TO_GOLD != null)
                    {
                        PORT_RECIPE_TO_GOLD(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "BPC_Result":
                    if (BPC_Result != null)
                    {
                        BPC_Result(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "WLC_Result":
                    if (WLC_Result != null)
                    {
                        WLC_Result(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "EQUIP_QUERY_CALIBRATION":
                    if (EQUIP_QUERY_CALIBRATION != null)
                    {
                        EQUIP_QUERY_CALIBRATION(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "STRIP_MAP_REQUEST":
                    if (STRIP_MAP_REQUEST != null)
                    {
                        STRIP_MAP_REQUEST(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;

                case "STRIP_MAP_UPLOAD":
                    if (STRIP_MAP_UPLOAD != null)
                    {
                        STRIP_MAP_UPLOAD(sender, new RecvCallbackArgs(messageBase));
                    }
                    break;
                }
            }
            catch (Exception ex)
            {
                //throw;
                Console.WriteLine(ex.Message);
            }
        }