internal static pxcmStatus UnsubscribeAlertINT(IntPtr instance, Object proxy)
    {
        AlertHandlerDIR adir = (AlertHandlerDIR)proxy;
        pxcmStatus      sts  = PXCMFaceConfiguration_UnsubscribeAlert(instance, adir.uDIR);

        adir.Dispose();
        return(sts);
    }
    internal static pxcmStatus UnsubscribeAlertINT(IntPtr instance, Object proxy)
    {
        AlertHandlerDIR adir = (AlertHandlerDIR)proxy;
        pxcmStatus      sts  = PXCMTouchlessController_UnsubscribeAlert(instance, adir.uDIR);

        adir.Dispose();
        return(sts);
    }
 internal static pxcmStatus SubscribeAlertINT(IntPtr instance, OnFiredAlertDelegate handler, out Object proxy)
 {
     AlertHandlerDIR adir = new AlertHandlerDIR(handler);
     pxcmStatus sts = PXCMFaceConfiguration_SubscribeAlert(instance, adir.uDIR);
     if (sts < pxcmStatus.PXCM_STATUS_NO_ERROR)
         adir.Dispose();
     proxy = (Object)adir;
     return sts;
 }
    internal static pxcmStatus SubscribeAlertINT(IntPtr instance, OnFiredAlertDelegate alertHandler, out Object proxy)
    {
        AlertHandlerDIR adir = new AlertHandlerDIR(alertHandler);
        pxcmStatus      sts  = PXCMTouchlessController_SubscribeAlert(instance, adir.uDIR);

        if (sts < pxcmStatus.PXCM_STATUS_NO_ERROR)
        {
            adir.Dispose();
        }
        proxy = (Object)adir;
        return(sts);
    }
Example #5
0
        private void SubscribeINT(OnAlertDelegate d)
        {
            if (handler != null)
            {
                handler.Dispose();
                handler = null;
            }

            if (d != null)
            {
                handler=new AlertHandlerDIR(d);
                PXCM3DSeg_Subscribe(instance, handler.dirUnmanaged);
            }
            else
            {
                PXCM3DSeg_Subscribe(instance, IntPtr.Zero);
            }
        }
Example #6
0
    private void SubscribeINT(OnAlertDelegate d)
    {
        if (handler != null)
        {
            handler.Dispose();
            handler = null;
        }

        if (d != null)
        {
            handler = new AlertHandlerDIR(d);
            PXCM3DScan_Subscribe(instance, handler.dirUnmanaged);
        }
        else
        {
            PXCM3DScan_Subscribe(instance, IntPtr.Zero);
        }
    }