示例#1
0
        protected virtual void OnPacketSelected(CapturePacket packet)
        {
            var e = new PacketSelectedEventArgs(packet);

            PacketSelected?.Invoke(this, e);
        }
示例#2
0
 /// <summary>
 /// Handles the SelectedValueChanged event of the cbPackets control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void cbPackets_SelectedValueChanged(object sender, EventArgs e)
 {
     PacketSelected?.Invoke(this, cbPackets.SelectedItem as string);
 }