private void StopCaptureButton_Click(object sender, EventArgs e) { this.CaptureButton.Enabled = false; this.StopCaptureButton.Enabled = false; this.RedPicture.Visible = true; this.GreenPicture.Visible = false; this.AmberPicture.Visible = false; this.DumpToFileCheckbox.Enabled = true; this.promiscuousCheckbox.Enabled = true; ThreadPool.QueueUserWorkItem(this.StopCapture, this.dev); if (this.DumpToFileCheckbox.Checked) { ExternalLinks.OpenFileInNotepad(this.DumpFile); } }
private void StopCaptureButton_Click(object sender, EventArgs e) { CaptureButton.Enabled = false; StopCaptureButton.Enabled = false; RedPicture.Visible = true; GreenPicture.Visible = false; AmberPicture.Visible = false; DumpToFileCheckbox.Enabled = true; promiscuousCheckbox.Enabled = true; System.Threading.ThreadPool.QueueUserWorkItem(new System.Threading.WaitCallback(StopCapture), dev); if (DumpToFileCheckbox.Checked) { ExternalLinks.OpenFileInNotepad(this.DumpFile); } }