I have an AddIn (C# VS 2010) that depends on the selected items in the Attribute Window (This is the right-click on the Layer Attributes Table Window). When the user hits Start Editing I want to get a handle on the Currently open Attribute Window (or check if it is open) and automatically select the correct Layer. I know how to get the currently selected layer as shown below.
var puid = new UID {Value = "{E156D7E5-22AF-11D3-9F99-00C04F6BC78E}"};
IEnumLayer penumlayer = _mxDocument.ActiveView.FocusMap.get_Layers(puid, true);
penumlayer.Reset();
featureLayer = penumlayer.Next() as IFeatureLayer;
But I need to check if the Attribute Window is open and then I can auto select the Layer with some other code based on the DataSet Name.
I’m hoping that someone has a code snippet that will help me.