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); } }
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); } }
public AlertHandlerDIR(OnAlertDelegate d) { handler = d; gch = GCHandle.Alloc(handler); dirUnmanaged = PXCM3DSeg_AllocHandlerDIR(Marshal.GetFunctionPointerForDelegate(d)); }
public AlertHandlerDIR(OnAlertDelegate d) { handler = d; gch = GCHandle.Alloc(handler); dirUnmanaged = PXCM3DScan_AllocHandlerDIR(Marshal.GetFunctionPointerForDelegate(d)); }
public void Subscribe(OnAlertDelegate d) { SubscribeINT(d); }
public void Subscribe(OnAlertDelegate d) { SubscribeINT(d); }