Entry Point

Land Desktop Map 3D Samples

 
Entry Point
 
 
 

When you netload the NetworkTrace.dll, you cause the Initialize() method of the AppEntry class in Commands.cs to run.

The Initialize method stores the path to the NetworkTrace.dll and prints the message Network trace sample application initialized. to the Map command-line. It creates an instance of the Commands class, which is also defined in Commands.cs. It then calls the PrepareCommand method on this instance.

The PrepareCommand method creates an instance of the NetworkTrace class, which is defined in NetworkTrace.cs, and calls its RunLoadNetworkCommand method, which does the following:

  1. Uses the path to the NetworkTrace.dll stored earlier to construct a pathname for the Roads.sdf file.
  2. Creates an MgResourceIdentifier object that identifies the Roads.sdf file. This is described in the topic ConnectToSdfFile.
  3. Uses the MgResourceIdentifier object to add the features in the Roads.sdf file to the current map. This is described in topic AddAllToMap.