Ejemplo n.º 1
0
        private string GetMessagePacketObjectText(PacketListColumnID column_id, PacketListViewItem obj)
        {
            switch (column_id)
            {
            case PacketListColumnID.PacketInformation:      return(obj.BasePacket.Message);

            default:                                                                        return("");
            }
        }
Ejemplo n.º 2
0
        private string GetPacketObjectText(PacketListColumnID column_id, PacketListViewItem obj)
        {
            switch (obj.BasePacket.Attribute)
            {
            case PacketAttribute.Message:   return(GetMessagePacketObjectText(column_id, obj));

            case PacketAttribute.Data:              return(GetDataPacketObjectText(column_id, obj));

            default:                                                return("");
            }
        }
Ejemplo n.º 3
0
        private string GetDataPacketObjectText(PacketListColumnID column_id, PacketListViewItem obj)
        {
            switch (column_id)
            {
            case PacketListColumnID.Alias:                          return(obj.BasePacket.Alias);

            case PacketListColumnID.Datetime_UTC:           return(obj.BasePacket.GetElementText(PacketElementID.DateTime_UTC_Display));

            case PacketListColumnID.Datetime_Local:         return(obj.BasePacket.GetElementText(PacketElementID.DateTime_Local_Display));

            case PacketListColumnID.Source:                         return(GetDataPacketObjectText_Source(obj));

            case PacketListColumnID.Destination:            return(GetDataPacketObjectText_Destination(obj));

            case PacketListColumnID.PacketLength:           return(obj.BasePacket.DataLength.ToString());

            case PacketListColumnID.PacketInformation:      return(GetDataPacketObjectText_PacketInformation(obj));

            default:                                                                        return("");
            }
        }