internal override void OnDispose(IntPtr nativePtr) { if (m_OnPrintStart != null) { m_OnPrintStart = null; CfxApi.PrintHandler.cfx_print_handler_set_managed_callback(NativePtr, 0, IntPtr.Zero); } if (m_OnPrintSettings != null) { m_OnPrintSettings = null; CfxApi.PrintHandler.cfx_print_handler_set_managed_callback(NativePtr, 1, IntPtr.Zero); } if (m_OnPrintDialog != null) { m_OnPrintDialog = null; CfxApi.PrintHandler.cfx_print_handler_set_managed_callback(NativePtr, 2, IntPtr.Zero); } if (m_OnPrintJob != null) { m_OnPrintJob = null; CfxApi.PrintHandler.cfx_print_handler_set_managed_callback(NativePtr, 3, IntPtr.Zero); } if (m_OnPrintReset != null) { m_OnPrintReset = null; CfxApi.PrintHandler.cfx_print_handler_set_managed_callback(NativePtr, 4, IntPtr.Zero); } if (m_GetPdfPaperSize != null) { m_GetPdfPaperSize = null; CfxApi.PrintHandler.cfx_print_handler_set_managed_callback(NativePtr, 5, IntPtr.Zero); } base.OnDispose(nativePtr); }
internal override void OnDispose(IntPtr nativePtr) { if(m_OnPrintStart != null) { m_OnPrintStart = null; CfxApi.cfx_print_handler_set_managed_callback(NativePtr, 0, IntPtr.Zero); } if(m_OnPrintSettings != null) { m_OnPrintSettings = null; CfxApi.cfx_print_handler_set_managed_callback(NativePtr, 1, IntPtr.Zero); } if(m_OnPrintDialog != null) { m_OnPrintDialog = null; CfxApi.cfx_print_handler_set_managed_callback(NativePtr, 2, IntPtr.Zero); } if(m_OnPrintJob != null) { m_OnPrintJob = null; CfxApi.cfx_print_handler_set_managed_callback(NativePtr, 3, IntPtr.Zero); } if(m_OnPrintReset != null) { m_OnPrintReset = null; CfxApi.cfx_print_handler_set_managed_callback(NativePtr, 4, IntPtr.Zero); } if(m_GetPdfPaperSize != null) { m_GetPdfPaperSize = null; CfxApi.cfx_print_handler_set_managed_callback(NativePtr, 5, IntPtr.Zero); } base.OnDispose(nativePtr); }