Example #1
0
        private void StartCapture()
        {
            //End the packet sniffer thread
            if (packetCaptureThread != null)
            {
                packetCaptureThread.StopCapture();
            }

            //Clear the list
            playerList.Items.Clear();

            //Start a new thread
            packetCaptureThread = new PacketCaptureThread(captureDevice, this);
        }
        private void StartCapture()
        {
            //End the packet sniffer thread
            if (packetCaptureThread != null)
                packetCaptureThread.StopCapture();

            //Clear the list
            playerList.Items.Clear();

            //Start a new thread
            packetCaptureThread = new PacketCaptureThread(captureDevice, this);
        }