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; } }
public void ProcessMessage(byte[] msg) { MessageProtocol.ReciveMessage ret = m_messageReciver.messageProcessing(msg); reciveMsgCallback(ret); }