private void OnBackgroundRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if ((e.Cancelled)) { } else if (e.Error != null) { } else { Trackball trackball = new Trackball(); trackball.EventSource = previewImageGrid; viewport.Camera.Transform = trackball.Transform; //FlyMotionController flyMotionController = new FlyMotionController(); //flyMotionController.EventSource = previewImageGrid; //viewport.Camera.Transform = flyMotionController.Transform; previewImageGrid.MouseMove += OnViewportGridMouseMove; if (START_ORBIT) m_timer.Start(); } }
private void OnBackgroundRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if ((e.Cancelled)) { } else if (e.Error != null) { } else { Trackball trackball = new Trackball(); trackball.EventSource = previewImageGrid; viewport.Camera.Transform = trackball.Transform; } }