public override void Load()
 {
     // Setup Drag&Drop functionality
     Global.worldWindow.DragEnter += new DragEventHandler(OgrVectorImporter_DragEnter);
     Global.worldWindow.DragDrop  += new DragEventHandler(OgrVectorImporter_DragDrop);
     world = Global.worldWindow.CurrentWorld;
     layer = new RenderableObjectList(Name);
     world.RenderableObjects.Add(layer);
     waitMessage = new WaitMessage();
     layer.Add(waitMessage);
     LoadSaveXmlConfig(true);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Plugin entry point - All plugins must implement this function
        /// </summary>
        public override void Load()
        {
            // Setup Drag&Drop functionality
            m_Application.WorldWindow.DragEnter += new DragEventHandler(OgrVectorImporter_DragEnter);
            m_Application.WorldWindow.DragDrop  += new DragEventHandler(OgrVectorImporter_DragDrop);


            world = m_Application.WorldWindow.CurrentWorld;
            layer = new RenderableObjectList(Name);
            world.RenderableObjects.Add(layer);
            waitMessage = new WaitMessage();
            layer.Add(waitMessage);

            menuItem        = new MenuItem("Import vectors from OGR data source...");
            menuItem.Click += new EventHandler(menuItem_Click);
            ParentApplication.PluginsMenu.MenuItems.Add(menuItem);

            LoadSaveXmlConfig(true);
        }