public void SetPackets(LogPacketCollection packets) { lock (packets) { SetPackets(packets.ToArray()); } }
public LogViewerForm(LogPacketCollection packets, bool readOnly) { InitializeComponent(); packetLogControl.SetPackets(packets); packetLogControl.ReadOnly = readOnly; }
static void AddToExistingDifflog(LogPacketCollection coll, LogPacket[] packets) { lock (coll) { foreach (LogPacket packet in packets) { coll.Add(packet.ClonePacket()); } } }
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"); }
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); } } } }
/// <summary> /// Constructor /// </summary> public TestDocument() { _inputPackets = new LogPacketCollection(); _outputPackets = new LogPacketCollection(); SetupCollections(); }
public InjectPacketControlConfig() { Packets = new LogPacketCollection(); }
/// <summary> /// Constructor /// </summary> /// <param name="packets"></param> public PacketLogDocument(LogPacket[] packets) { _packets = new LogPacketCollection(packets); SetupCollections(); }
public SortedLogPacketFacade(LogPacketCollection packets) { _packets = packets; _remapTable = new List<int>(); }
/// <summary> /// Constructor /// </summary> public PacketLogDiffDocument() { _left = new LogPacketCollection(); _right = new LogPacketCollection(); }
public void SetPackets(LogPacket[] packets) { _packets = new LogPacketCollection(packets); }
/// <summary> /// Set the backing packet store with an existing packet collection /// </summary> /// <param name="packets"></param> public void SetPackets(LogPacketCollection packets) { _packets = packets; }
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)); }