ldonahue

ArcMap Add-ins - passing a Map reference to a Utility class

Discussion created by ldonahue on Jun 11, 2012
Latest reply on Jun 11, 2012 by ldonahue
Buttons and Tools both have a method in which you can get a reference to the application and from there you can get the MxDocument.  However, sometimes you find yourself needing a reference to the application in other classes, specifically a reference to the IMap.

Dare I ask if anyone is using a utility class to hold a reference to the IMap object?  And if so, is that utility class a singleton?

Outcomes