private void btnSDICapture_Click(object sender, RoutedEventArgs e)
        {
            //if (_camera == null)
            //{
            //    string message = "No virtual camera was found in the scene";
            //    System.Console.WriteLine(message);
            //    System.Diagnostics.Debug.WriteLine(message);
            //}

            if (_cameraTracker != null)
            {
                _cameraTracker.StopTracking();
                _cameraTracker.RemoveAllVirtualScenes();
            }

            VirtualCameraLibrary.SDIVirtualCameraTracker.SDIVirtualCameraTracker cameraTracker = new VirtualCameraLibrary.SDIVirtualCameraTracker.SDIVirtualCameraTracker();

            cameraTracker.AddVirtualScene(_scene.Scene.GetIVxScene(), _scene.Camera, _units, false);
            cameraTracker.AddVirtualScene(_livePreviewScene.Scene.GetIVxScene(), _livePreviewScene.Camera, _units, false);

            cameraTracker.StartTracking(_scene.Scene.GetIVxScene(), _scene.CalibrationFile, _scene.TelemetryFile);

            _cameraTracker = cameraTracker;

            this.btnNetworkCapture.IsEnabled = false;
            this.btnSDICapture.IsEnabled     = false;
            this.btnSerialCapture.IsEnabled  = false;
            this.btnStopCapture.IsEnabled    = true;
        }
        private void btnNetworkCapture_Click(object sender, RoutedEventArgs e)
        {
            if (_scene.Camera == null)
            {
                string message = "No virtual camera was found in the scene";
                System.Console.WriteLine(message);
                System.Diagnostics.Debug.WriteLine(message);
            }

            if (_cameraTracker != null)
            {
                _cameraTracker.StopTracking();
                _cameraTracker.RemoveAllVirtualScenes();
            }

            VirtualCameraLibrary.NetworkVirtualCameraTracker.NetworkVirtualCameraTracker cameraTracker =
                new VirtualCameraLibrary.NetworkVirtualCameraTracker.NetworkVirtualCameraTracker();

            cameraTracker.AddVirtualScene(_scene.Scene.GetIVxScene(), _scene.Camera, _units, false);
            cameraTracker.AddVirtualScene(_livePreviewScene.Scene.GetIVxScene(), _livePreviewScene.Camera, _units, false);
            cameraTracker.StartTracking(this.multicastIpTextBox.Text, short.Parse(this.portTextbox.Text), true);

            _cameraTracker = cameraTracker;

            this.btnNetworkCapture.IsEnabled = false;
            this.btnSDICapture.IsEnabled     = false;
            this.btnSerialCapture.IsEnabled  = false;
            this.btnStopCapture.IsEnabled    = true;
        }