Beispiel #1
0
        private void StopCapture(object sender, RoutedEventArgs e)
        {
            if (captureWorker == null)
            {
                return;
            }

            captureWorker.Stop();
            captureThread.Join();
            captureWorker = null;
        }
Beispiel #2
0
        private void StartCapture(object sender, RoutedEventArgs e)
        {
            if (captureWorker != null)
            {
                return;
            }

            ClearCapture(null, null);

            captureWorker = new MachinaCaptureWorker(this, (TCPNetworkMonitor.NetworkMonitorType)captureMode);
            captureThread = new Thread(captureWorker.Run);

            captureThread.Start();
        }