public override void Dispose() { if (contextMenu != null) { contextMenu.Dispose(); contextMenu = null; } base.Dispose(); }
public override void Dispose() { foreach (IActionContainer container in GetContainers()) { container.Dispose(); } if (contextMenu != null) { contextMenu.Dispose(); contextMenu = null; } base.Dispose(); }
//B157146, B157117 public override void Dispose() { if (ToolBar != null) { ToolBar.Dispose(); ToolBar = null; } if (contextMenu != null) { contextMenu.Dispose(); contextMenu = null; } base.Dispose(); }
//B157146, B157117 public override void Dispose() { if (ToolBar != null) { ToolBar.MenuItemsCreated -= new EventHandler(ToolBar_MenuItemsCreated); ToolBar.Dispose(); ToolBar = null; } if (contextMenu != null) { contextMenu.Dispose(); contextMenu = null; } base.Dispose(); }