public KinectService(IKinectSensorAdapterFactory kinectSensorAdapterFactory, IKinectSettings settings) { _kinectSensorAdapterFactory = kinectSensorAdapterFactory; _settings = settings; _kinectSensorAdapterFactory.StatusChanged += KinectSensorsOnStatusChanged; KinectAdapter = _kinectSensorAdapterFactory.GetFirstKinectSensor(); OnKinectStatusChanged(KinectAdapter != null ? KinectAdapter.Status : KinectStatus.Disconnected); }