private void ARPopulateComboWithMapLayers(ComboBox Layers, System.Collections.Hashtable LayersIndex)
{
//In case cboLayers is already populated
Layers.Items.Clear();
LayersIndex.Clear();
ARLayer arLayer;
ARLayer arGroupLayer;
// Get the focus map
ARMap arMap = axArcReaderControl1.ARPageLayout.FocusARMap;
// Loop through each layer in the focus map
for (int i=0; i <= arMap.ARLayerCount-1; i++)
{
// Get the layer name and add to combo
arLayer = arMap.get_ARLayer(i);
if (arLayer.IsGroupLayer == true)
{
//If a GroupLayer add the ARChildLayers to the combo and HashTable
for (int g=0; g <= arLayer.ARLayerCount-1; g++)
{
arGroupLayer = arMap.get_ARLayer(i).get_ChildARLayer(g);
Layers.Items.Add(arGroupLayer.Name);
LayersIndex.Add(Layers.Items.Count-1,arGroupLayer);
}
}
else if (arLayer.Searchable==true)
{
Layers.Items.Add(arLayer.Name);
LayersIndex.Add(Layers.Items.Count-1,arLayer);
}
}
}
private void PopulateFields(bool bIsStringField)