private void OnStyleChanged() { switch (CamStyle) { case CameraStyle.Manual: tpCam.ResetCamera(); autoCam.ResetContainer(false); tpCam.lockCamera = false; autoCam.CanRotate = false; break; case CameraStyle.Auto: tpCam.ResetCamera(); autoCam.ReturnToDefaultValues(); autoCam.ResetContainer(true); tpCam.lockCamera = true; autoCam.CanRotate = true; break; default: break; } }