RegisterEvents

Land Desktop Map 3D Samples

 
RegisterEvents
 
 
 

The RegisterEvents command sets up the event handlers used by the FeatureInspector to respond to changes in the active documents.

The RegisterEvents command does the following:

  1. Calls the RegisterEventCommand method of the Commands class. This method accesses the static Instance property of the EventRegister class. This property will create a new instance of EventRegister if one does not already exist.
  2. Calls the RegisterEvents method of EventRegister. This loops through all open documents and adds an event handler for when features are selected or unselected. It also adds event handlers to respond to when documents are created, destroyed, or activated, or when the application is shutting down.