Beispiel #1
0
 internal override void OnDispose(IntPtr nativePtr)
 {
     if (m_ExecuteCommand != null)
     {
         m_ExecuteCommand = null;
         CfxApi.MenuModelDelegate.cfx_menu_model_delegate_set_managed_callback(NativePtr, 0, IntPtr.Zero);
     }
     if (m_MenuWillShow != null)
     {
         m_MenuWillShow = null;
         CfxApi.MenuModelDelegate.cfx_menu_model_delegate_set_managed_callback(NativePtr, 1, IntPtr.Zero);
     }
     base.OnDispose(nativePtr);
 }
 internal override void OnDispose(IntPtr nativePtr)
 {
     if (m_ExecuteCommand != null)
     {
         m_ExecuteCommand = null;
         CfxApi.MenuModelDelegate.cfx_menu_model_delegate_set_callback(NativePtr, 0, IntPtr.Zero);
     }
     if (m_MouseOutsideMenu != null)
     {
         m_MouseOutsideMenu = null;
         CfxApi.MenuModelDelegate.cfx_menu_model_delegate_set_callback(NativePtr, 1, IntPtr.Zero);
     }
     if (m_UnhandledOpenSubmenu != null)
     {
         m_UnhandledOpenSubmenu = null;
         CfxApi.MenuModelDelegate.cfx_menu_model_delegate_set_callback(NativePtr, 2, IntPtr.Zero);
     }
     if (m_UnhandledCloseSubmenu != null)
     {
         m_UnhandledCloseSubmenu = null;
         CfxApi.MenuModelDelegate.cfx_menu_model_delegate_set_callback(NativePtr, 3, IntPtr.Zero);
     }
     if (m_MenuWillShow != null)
     {
         m_MenuWillShow = null;
         CfxApi.MenuModelDelegate.cfx_menu_model_delegate_set_callback(NativePtr, 4, IntPtr.Zero);
     }
     if (m_MenuClosed != null)
     {
         m_MenuClosed = null;
         CfxApi.MenuModelDelegate.cfx_menu_model_delegate_set_callback(NativePtr, 5, IntPtr.Zero);
     }
     if (m_FormatLabel != null)
     {
         m_FormatLabel = null;
         CfxApi.MenuModelDelegate.cfx_menu_model_delegate_set_callback(NativePtr, 6, IntPtr.Zero);
     }
     base.OnDispose(nativePtr);
 }