/// <summary> /// 監視モニタータブレット通信メッセージ送信完了イベント処理 /// </summary> /// <param name="sntMsg">送信メッセージ</param> /// <param name="resMsg">受信応答メッセージ</param> private void CellMonTabComSentMessageEventProc(CellMonTabMessage sntMsg, CellMonTabMessage resMsg) { lock (lockObjExecAndCom) { // Cell運転操作要求 if (resMsg.GetType() == typeof(CellMonTabMsgGetOperationResponse)) { Console.WriteLine("Cell運転操作要求応答受信"); } // テーブル更新通知 else if (resMsg.GetType() == typeof(CellMonTabMsgPutUpdateTableResponse)) { Console.WriteLine("テーブル更新通知応答受信"); } // データベース更新要求 else if (resMsg.GetType() == typeof(CellMonTabMsgGetUpdateDbResponse)) { Console.WriteLine("データベース更新要求応答受信"); } // MU挿入要求 else if (resMsg.GetType() == typeof(CellMonTabMsgGetInsertResponse)) { Console.WriteLine("MU挿入要求応答受信"); } // MU解除要求 else if (resMsg.GetType() == typeof(CellMonTabMsgGetEjectResponse)) { Console.WriteLine("MU解除要求応答受信"); } // this.IsMsgConnected = true; } }
/// <summary> /// Cell,Mu通信メッセージ受信イベント処理 /// </summary> /// <param name="message">受信メッセージ</param> private void CellMonTabComReceivedMessageEventProc(CellMonTabMessage message) { lock (lockObjExecAndCom) { CellMonTabMessage recvdMsg; // 受信メッセージ読出し if (this._cellMonTabMsgCtrl.RecvMessage(out recvdMsg)) { // データベース更新結果通知メッセージ if (recvdMsg.GetType() == typeof(CellMonTabMsgPutUpdateDbResult)) { Console.WriteLine("データベース更新結果通知受信"); RecvMsgPutUpdateDbResult((CellMonTabMsgPutUpdateDbResult)recvdMsg); } // this.IsMsgConnected = true; } } }