protected virtual void OnPacketSelected(CapturePacket packet) { var e = new PacketSelectedEventArgs(packet); PacketSelected?.Invoke(this, e); }
/// <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); }