public FFXIVSnifferForm() { CheckForIllegalCrossThreadCalls = false; InitializeComponent(); ByteViewer.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; ByteViewer.Dock = DockStyle.Fill; leftSide.Controls.Add(ByteViewer); Sniffer.PacketProcessor = test; var snifferThread = new Thread(() => { Sniffer.Online(); }); snifferThread.IsBackground = false; snifferThread.Start(); }
private void FFXIVSnifferForm_FormClosing(object sender, FormClosingEventArgs e) { Sniffer.Cleanup(); }