Ejemplo n.º 1
0
        /// <summary>
        /// Initalizes The Tool
        /// </summary>
        private void Initialize()
        {
            cbo_featureclass.Items.Clear();
            cbo_featureclass.Items.AddRange(_utilitiesArcMap.PolygonLayerNames().ToArray());

            if (cbo_featureclass.Items.Count > 0)
            {
                cbo_featureclass.SelectedIndex = 0;
            }
            else
            {
                MessageBox.Show("Add Some Polygon Layers to Arcmap", MB_TITLE, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
Ejemplo n.º 2
0
 private void Initialize()
 {
     _mxdocument      = (IMxDocument)_application.Document;
     _map             = _mxdocument.FocusMap;
     _utilitiesArcMap = new RS_Tools.Utilities.Utilities_ArcMap(_map);
     cboTileIndex.Items.Clear();
     cboTileIndex.Items.AddRange(_utilitiesArcMap.PolygonLayerNames().ToArray());
     if (cboTileIndex.Items.Count > 0)
     {
         cboTileIndex.SelectedIndex = 0;
     }
     else
     {
         MessageBox.Show("Add Some Polygon Layers to Arcmap", MB_TITLE, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }
Ejemplo n.º 3
0
        private void Initialize()
        {
            _application = this.Hook as IApplication;
            _mxdocument  = (IMxDocument)_application.Document;
            _map         = _mxdocument.FocusMap;
            _activeView  = _mxdocument.ActiveView;

            _utilitiesArcMap = new RS_Tools.Utilities.Utilities_ArcMap(_map);
            if (this.cboBuildingLayer.Items.Count > 0)
            {
                this.cboBuildingLayer.Items.Clear();
            }
            this.cboBuildingLayer.Items.AddRange(_utilitiesArcMap.PolygonLayerNames().ToArray());
            this.cboBuildingLayer.Items.AddRange(_utilitiesArcMap.PolylineLayers().ToArray());
            this.cboBuildingLayer.Items.AddRange(_utilitiesArcMap.PointLayerNames().ToArray());
            if (this.cboBuildingLayer.Items.Count > 0)
            {
                this.cboBuildingLayer.SelectedIndex = 0;
            }
        }
Ejemplo n.º 4
0
        private void TileOrganizer_Form_Load(object sender, EventArgs e)
        {
            this.lblVersion.Text = "Version: " + this.ProductVersion;

            _mxdocument = (IMxDocument)_application.Document;
            _map        = _mxdocument.FocusMap;
            _activeView = _mxdocument.ActiveView;

            if (_utilities == null)
            {
                _utilities = new Utilities_ArcMap(_map);
            }

            this.cboTileLayoutLayer.Items.AddRange(_utilities.PolygonLayerNames().ToArray());
            if (this.cboTileLayoutLayer.Items.Count > 0)
            {
                this.cboTileLayoutLayer.SelectedIndex = 0;
            }

            this.tbxLASFolder.Text      = _util.LASFOLDER;
            this.tbxLASToolsFolder.Text = _util.LASTOOLSFOLDER;
            this.numProcesses.Value     = _util.PROCESSES;
        }