public void DoToggleTracking(bool enabled) { if (enabled) { if (CameraService.Enabled) { CameraService.Stop(); } Camera.Tracking = TrackerService.Start(); } else { Camera.Tracking = TrackerService.Stop(); if (Camera.ShowImage) { CameraService.Start(); } } ConsoleService.Write("Tracking: " + enabled); }