public override void Load() { if (Global.worldWindow.CurrentWorld.Name.IndexOf("Earth") >= 0) { m_BmngForm = new BMNG(Global.worldWindow); base.Load(); } }
public override void Unload() { if (m_BmngForm != null) { m_BmngForm.Dispose(); m_BmngForm = null; } base.Unload(); }
public override void Unload() { if (m_BmngForm != null) { m_BmngForm.Dispose(); m_BmngForm = null; ParentApplication.PluginsMenu.MenuItems.Remove(m_MenuItem); } base.Unload(); }
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(); } }