private void cbo_TileIndex_SelectedIndexChanged(object sender, EventArgs e) { cbo_FieldName.Items.Clear(); ILayer tileIndex = _utilitiesArcMap.Layer(cbo_TileIndex.Text); cbo_FieldName.Items.AddRange(_utilitiesArcMap.AllFields(tileIndex).ToArray()); }
private void cboTileIndex_SelectedIndexChanged(object sender, EventArgs e) { cboNameField.Items.Clear(); ILayer tile_index = _utilitiesArcMap.Layer(cboTileIndex.Text); cboNameField.Items.AddRange(_utilitiesArcMap.AllFields(tile_index).ToArray()); // This will auto select the first field in the tile_index attribute table //if (cboNameField.Items.Count > -1) // cboNameField.SelectedIndex = 0; }