예제 #1
0
        /// <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;
            }
        }
예제 #2
0
        /// <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;
            }
        }