Exemple #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;
            }
        }
Exemple #2
0
        void menuItemClicked(object sender, EventArgs e)
        {
            if (m_Form != null && m_Form.Visible)
            {
                m_Form.Visible = false;
                m_Form.Dispose();
                m_Form = null;

                m_MenuItem.Checked = false;
            }
            else
            {
                m_Form = new OverviewForm(Global.worldWindow, m_MenuItem);

                m_Form.Visible     = true;
                m_MenuItem.Checked = true;
            }
        }