public override void Load() { // Create our whiteboard layer m_whiteboardLayer = new DrawLayer("Whiteboard"); ParentApplication.WorldWindow.CurrentWorld.RenderableObjects.Add(m_whiteboardLayer); // Add our menu button m_menuButton = new WhiteboardMenuButton(this.PluginDirectory + @"\Plugins\Whiteboard\images\icons\APL4C.png", this); ParentApplication.WorldWindow.MenuBar.AddToolsMenuButton(m_menuButton); // Add our navigation menu item m_wbMenuItem = new System.Windows.Forms.MenuItem(); m_wbMenuItem.Text = "Hide Whiteboard\tN"; m_wbMenuItem.Click += new System.EventHandler(WbMenuItem_Click); ParentApplication.ToolsMenu.MenuItems.Add(m_wbMenuItem); ParentApplication.WorldWindow.KeyUp += new KeyEventHandler(keyUp); if (m_whiteboardForm == null) { m_whiteboardForm = new WhiteboardWidget("Whiteboard", this.PluginDirectory); m_whiteboardForm.Location = new System.Drawing.Point(DrawArgs.NewRootWidget.ClientSize.Width - 401, 120); m_whiteboardForm.WidgetSize = new System.Drawing.Size(200, 242); m_whiteboardForm.HorizontalScrollbarEnabled = false; m_whiteboardForm.HorizontalResizeEnabled = false; m_whiteboardForm.Anchor = WidgetEnums.AnchorStyles.Right; m_whiteboardForm.Enabled = true; m_whiteboardForm.Visible = true; m_whiteboardForm.WhiteboardLayer = m_whiteboardLayer; } DrawArgs.NewRootWidget.ChildWidgets.Add(m_whiteboardForm); base.Load(); }