internal static pxcmStatus UnsubscribeEventINT(IntPtr instance, Object proxy) { UXEventHandlerDIR uxdir = (UXEventHandlerDIR)proxy; pxcmStatus sts = PXCMTouchlessController_UnsubscribeEvent(instance, uxdir.uDIR); uxdir.Dispose(); return(sts); }
internal static pxcmStatus SubscribeEventINT(IntPtr instance, OnFiredUXEventDelegate uxEventHandler, out Object proxy) { UXEventHandlerDIR uxdir = new UXEventHandlerDIR(uxEventHandler); pxcmStatus sts = PXCMTouchlessController_SubscribeEvent(instance, uxdir.uDIR); if (sts < pxcmStatus.PXCM_STATUS_NO_ERROR) { uxdir.Dispose(); } proxy = (Object)uxdir; return(sts); }
internal static pxcmStatus SubscribeEventINT(IntPtr instance, OnFiredUXEventDelegate uxEventHandler, out Object proxy) { UXEventHandlerDIR uxdir = new UXEventHandlerDIR(uxEventHandler); pxcmStatus sts = PXCMTouchlessController_SubscribeEvent(instance, uxdir.uDIR); if (sts < pxcmStatus.PXCM_STATUS_NO_ERROR) uxdir.Dispose(); proxy = (Object)uxdir; return sts; }