예제 #1
0
        public void msgRecive(MessageProtocol.ReciveMessage reciveMsg)
        {
            switch (reciveMsg)
            {
            case MessageProtocol.ReciveMessage.unknown:
                break;

            case MessageProtocol.ReciveMessage.inform_Error:
                m_isOnError = true;
                break;

            case MessageProtocol.ReciveMessage.order_Start:
                break;

            case MessageProtocol.ReciveMessage.order_Stop:
                btnStop_buttonDown();
                btnStart_buttonUp();
                doStop();
                break;

            case MessageProtocol.ReciveMessage.order_Error:
                m_isOnError     = true;
                m_isShowRestart = true;
                // showRestartDialog();    // ysys
                break;

            case MessageProtocol.ReciveMessage.order_RestartClick:
                m_isShowRestart = false;
                // closeRestartDialog();
                break;

            default:
                break;
            }
        }
예제 #2
0
 public void ProcessMessage(byte[] msg)
 {
     MessageProtocol.ReciveMessage ret = m_messageReciver.messageProcessing(msg);
     reciveMsgCallback(ret);
 }