Ejemplo n.º 1
0
        private void NewMap(string[] tablePaths)
        {
            // Create a new list of tables to hold the tables that need to be mapped.
            List <ITable> tablelist = new List <ITable>();

            // Loop through each table and open it.
            foreach (string tablepath in tablePaths)
            {
                // Open the table
                Table table = (Table)Table.OpenTable(tablepath);

                // Add the table to the list.
                tablelist.Add(table);
            }

            // Set the next document parent to the map panel on the form.
            this.mapPanel.SetAsNextDocumentParent(NextDocumentEnum.WIN_STYLE_CHILD);

            // Map all the tables in the list.
            map = MapWindow.MapTables(tablelist);

            // Now that there is a map, enable the Zoom In and Zoom Out buttons
            this.buttonZoomIn.Enabled  = true;
            this.buttonZoomOut.Enabled = true;
        }