public void SetPackets(LogPacketCollection packets)
 {
     lock (packets)
     {
         SetPackets(packets.ToArray());
     }
 }
Example #2
0
 public void SetPackets(LogPacketCollection packets)
 {
     lock (packets)
     {
         SetPackets(packets.ToArray());
     }
 }
Example #3
0
        public LogViewerForm(LogPacketCollection packets, bool readOnly)
        {
            InitializeComponent();

            packetLogControl.SetPackets(packets);
            packetLogControl.ReadOnly = readOnly;
        }
Example #4
0
        public LogViewerForm(LogPacketCollection packets, bool readOnly)
        {
            InitializeComponent();

            packetLogControl.SetPackets(packets);
            packetLogControl.ReadOnly = readOnly;
        }
Example #5
0
 static void AddToExistingDifflog(LogPacketCollection coll, LogPacket[] packets)
 {
     lock (coll)
     {
         foreach (LogPacket packet in packets)
         {
             coll.Add(packet.ClonePacket());
         }
     }
 }
Example #6
0
        public PacketLogControl()
        {
            // Create a default list
            _packets = new LogPacketCollection();
            _autoScroll = false;
            _currentCol = null;
            components = new Container();

            InitializeComponent();

            UpdateConfig(DocumentControl.GetConfigItem<PacketLogControlConfig>(DEFAULT_CONFIG_NAME, true));
        }
        public PacketLogDiffDocumentControl(PacketLogDiffDocument document)
        {
            InitializeComponent();

            _document = document;
            _left = document.Left;
            _right = document.Right;

            packetLogControlLeft.SetPackets(_left);
            packetLogControlRight.SetPackets(_right);
            packetLogControlLeft.Config = CreateConfig(".Left");
            packetLogControlRight.Config = CreateConfig(".Right");
        }
        public PacketLogDiffDocumentControl(PacketLogDiffDocument document)
        {
            InitializeComponent();

            _document = document;
            _left     = document.Left;
            _right    = document.Right;

            packetLogControlLeft.SetPackets(_left);
            packetLogControlRight.SetPackets(_right);
            packetLogControlLeft.Config  = CreateConfig(".Left");
            packetLogControlRight.Config = CreateConfig(".Right");
        }
Example #9
0
        static void addToExistingDiffLog_Click(object sender, Func <IEnumerable <LogPacket> > createPackets, bool left)
        {
            LogPacket[] packets = createPackets().ToArray();

            if (packets.Length > 0)
            {
                ToolStripItem item = sender as ToolStripItem;

                if (item != null)
                {
                    PacketLogDiffDocument doc = item.Tag as PacketLogDiffDocument;

                    if (doc != null)
                    {
                        LogPacketCollection coll = left ? doc.Left : doc.Right;

                        AddToExistingDifflog(coll, packets);
                    }
                }
            }
        }
Example #10
0
 /// <summary>
 /// Constructor
 /// </summary>
 public TestDocument()
 {
     _inputPackets = new LogPacketCollection();
     _outputPackets = new LogPacketCollection();
     SetupCollections();
 }
Example #11
0
 public InjectPacketControlConfig()
 {
     Packets = new LogPacketCollection();
 }
Example #12
0
 public InjectPacketControlConfig()
 {
     Packets = new LogPacketCollection();
 }
Example #13
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="packets"></param>
 public PacketLogDocument(LogPacket[] packets)
 {
     _packets = new LogPacketCollection(packets);
     SetupCollections();
 }
Example #14
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="packets"></param>
 public PacketLogDocument(LogPacket[] packets)
 {
     _packets = new LogPacketCollection(packets);
     SetupCollections();
 }
Example #15
0
 public SortedLogPacketFacade(LogPacketCollection packets)
 {
     _packets = packets;
     _remapTable = new List<int>();
 }
Example #16
0
 /// <summary>
 /// Constructor
 /// </summary>
 public PacketLogDiffDocument()
 {
     _left  = new LogPacketCollection();
     _right = new LogPacketCollection();
 }
Example #17
0
 public void SetPackets(LogPacket[] packets)
 {
     _packets = new LogPacketCollection(packets);
 }
Example #18
0
 /// <summary>
 /// Set the backing packet store with an existing packet collection
 /// </summary>
 /// <param name="packets"></param>
 public void SetPackets(LogPacketCollection packets)
 {
     _packets = packets;
 }
Example #19
0
 /// <summary>
 /// Constructor
 /// </summary>
 public TestDocument()
 {
     _inputPackets  = new LogPacketCollection();
     _outputPackets = new LogPacketCollection();
     SetupCollections();
 }
Example #20
0
        private void OpenNewPacketLogWindow(LogPacketCollection packets)
        {
            PacketLogControl control = new PacketLogControl();

            control.SetPackets(packets);

            string name = LogName != null ? LogName + " Packet Log" : "Packet Log";

            components.Add(DocumentControl.ShowControl(name, control));
        }
Example #21
0
 static void AddToExistingDifflog(LogPacketCollection coll, LogPacket[] packets)
 {
     lock (coll)
     {
         foreach (LogPacket packet in packets)
         {
             coll.Add(packet.ClonePacket());
         }
     }
 }
Example #22
0
 /// <summary>
 /// Constructor
 /// </summary>
 public PacketLogDiffDocument()
 {
     _left = new LogPacketCollection();
     _right = new LogPacketCollection();
 }