Exemple #1
0
        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();
        }
Exemple #2
0
 public ServiceElementPDUs(PDU_DETAIL pdu, DateTime time)
 {
     //
     // Required for Windows Form Designer support
     //
     InitializeComponent();
     nametextBox.Text = pdu.CmdType;
     this.Text        = pdu.CmdType + " PDUs List";
     foreach (PDU_DETAIL dataPdu in pdu.CmdPdusList)
     {
         //TimeSpan ts = dataPdu.timeStamp - time;
         //string timeStampStr = string.Format("{0:000}.{1:000}", (ts.Minutes * 60 + ts.Seconds), ts.Milliseconds);
         int    pduIndex   = dataPdu.PduIndex + 1;
         string displayStr = "[" + pduIndex.ToString() + "]" + " P-DATA-TF";
         cmdDataPduslistBox.Items.Add(displayStr);
         pduList.Add(dataPdu);
     }
 }