private void cmdDataPduslistBox_SelectedIndexChanged(object sender, System.EventArgs e) { PDU_DETAIL pdu = (PDU_DETAIL)pduList[cmdDataPduslistBox.SelectedIndex]; string pduStr = DumpDataPDU(pdu.PduData, 6, pdu.PduLength); PDUOverview pduOverview = new PDUOverview(pduStr, "P-DATA-TF", pdu.PduLength.ToString()); pduOverview.ShowDialog(); }
private void buttonAssReq_Click(object sender, System.EventArgs e) { if (assocHandle != null) { PDUOverview pdu = new PDUOverview(assocHandle.AssoRqPDUDetail, "A-ASSOCIATE-RQ", assocHandle.AssoRqPDULength); pdu.ShowDialog(); } }
private void menuItemShowPDU_Click(object sender, System.EventArgs e) { PDU_DETAIL pdu = null; if(reqPduList.SelectedIndex != -1) pdu = (PDU_DETAIL)reqList[reqPduList.SelectedIndex]; else pdu = (PDU_DETAIL)accList[accPduList.SelectedIndex]; string pduStr = ""; if(pdu != null) { if(pdu.PduType == 4) { if(pdu.CmdPdusList.Count > 1) { ServiceElementPDUs pdusDisplay = new ServiceElementPDUs(pdu, startTimeForFirstAssoc); pdusDisplay.ShowDialog(); } else { pduStr = GetPDUString(pdu); PDUOverview pduOverview = new PDUOverview(pduStr, pdu.CmdType, pdu.PduLength.ToString()); pduOverview.ShowDialog(); } } else { pduStr = GetPDUString(pdu); PDUOverview pduOverview = new PDUOverview(pduStr, ConvertPduType(pdu.PduType), pdu.PduLength.ToString()); pduOverview.ShowDialog(); } } }