public StateChangedEvent(ProductionNode node, RegisterFunc reg, UnregisterFunc unreg) { this.node = node; this.reg = reg; this.unreg = unreg; this.internalHandler = new SafeNativeMethods.XnStateChangedHandler(InternalHandler); }
internal GeneralIntCapability(ProductionNode node, string capabilityName) : base(node) { this.capabilityName = capabilityName; this.internalHandler = this.InternalHandler; int status = SafeNativeMethods.xnGetGeneralIntRange(this.InternalObject, this.capabilityName, out this.min, out this.max, out this.step, out this.defaultVal, out this.isAutoSupported); WrapperUtils.ThrowOnError(status); }