public void RemoveHandLocationListener(HandLocationListener aListener) { lock (_handLocationListenerLock) { if (this._handLocationListeners.Contains(aListener)) this._handLocationListeners.Remove(aListener); } }
public void AddHandLocationListener(HandLocationListener aListener) { lock (_handLocationListenerLock) { if (!this._handLocationListeners.Contains(aListener)) { this._handLocationListeners.Add(aListener); aListener.KinectHandManagerDidGetHandLocation(this, new HandLocationEvent(this.HandPosition)); } } }