/// <summary> /// Unload our plugin /// </summary> public override void Unload() { if (m_MenuItem != null) { m_MenuItem.Dispose(); m_MenuItem = null; } if (m_Form != null) { m_Form.Dispose(); m_Form = null; } }
/// <summary> /// Unload our plugin /// </summary> public override void Unload() { if (m_MenuItem != null) { ParentApplication.ToolsMenu.MenuItems.Remove(m_MenuItem); m_MenuItem.Dispose(); m_MenuItem = null; } if (m_ToolbarItem != null) { ParentApplication.WorldWindow.MenuBar.RemoveToolsMenuButton(m_ToolbarItem); m_ToolbarItem.Dispose(); m_ToolbarItem = null; } if (m_Form != null) { m_Form.Dispose(); m_Form = null; } }