Beispiel #1
0
        public override void Load()
        {
            if (Global.worldWindow.CurrentWorld.Name.IndexOf("Earth") >= 0)
            {
                m_BmngForm = new BMNG(Global.worldWindow);

                base.Load();
            }
        }
Beispiel #2
0
        public override void Unload()
        {
            if (m_BmngForm != null)
            {
                m_BmngForm.Dispose();
                m_BmngForm = null;
            }

            base.Unload();
        }
Beispiel #3
0
        public override void Unload()
        {
            if (m_BmngForm != null)
            {
                m_BmngForm.Dispose();
                m_BmngForm = null;
                ParentApplication.PluginsMenu.MenuItems.Remove(m_MenuItem);
            }

            base.Unload();
        }
Beispiel #4
0
        public override void Load()
        {
            if (ParentApplication.WorldWindow.CurrentWorld.Name.IndexOf("Earth") >= 0)
            {
                m_MenuItem        = new MenuItem("Blue Marble");
                m_MenuItem.Click += new EventHandler(menuItemClicked);
                ParentApplication.PluginsMenu.MenuItems.Add(m_MenuItem);

                m_BmngForm       = new BMNG(ParentApplication.WorldWindow, m_MenuItem);
                m_BmngForm.Owner = ParentApplication;

                m_ToolbarItem = new WorldWind.WindowsControlMenuButton(
                    "NASA Blue Marble",
                    Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath) + "\\Data\\Icons\\Interface\\bmng.png",
                    m_BmngForm);

                ParentApplication.WorldWindow.MenuBar.AddToolsMenuButton(m_ToolbarItem);

                base.Load();
            }
        }
Beispiel #5
0
        public override void Unload()
        {
            if (m_BmngForm != null)
            {
                m_BmngForm.Dispose();
                m_BmngForm = null;
                ParentApplication.PluginsMenu.MenuItems.Remove(m_MenuItem);
            }

            base.Unload();
        }
Beispiel #6
0
        public override void Load()
        {
            if (ParentApplication.WorldWindow.CurrentWorld.Name.IndexOf("Earth") >= 0)
            {
                m_MenuItem = new MenuItem("Blue Marble");
                m_MenuItem.Click += new EventHandler(menuItemClicked);
                ParentApplication.PluginsMenu.MenuItems.Add(m_MenuItem);

                m_BmngForm = new BMNG(ParentApplication.WorldWindow, m_MenuItem);
                m_BmngForm.Owner = ParentApplication;

                m_ToolbarItem = new WorldWind.WindowsControlMenuButton(
                    "NASA Blue Marble",
                    Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath) + "\\Data\\Icons\\Interface\\bmng.png",
                    m_BmngForm);

                ParentApplication.WorldWindow.MenuBar.AddToolsMenuButton(m_ToolbarItem);

                base.Load();
            }
        }