Entry Point

Land Desktop Map 3D Samples

 
Entry Point
 
 
 

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

The Initialize method prints the following message to the command-line: PolygonOperation sample application initialized.. It creates an instance of the Commands class, which is also defined in Commands.cs. It then calls the CmdListCommand method on this instance.

The CmdListCommand method prints the following to the command-line:

  • PROMPT: PolygonOperation sample commands:
  • - Prepare
  • - PolygonOperation

The Initialize method calls the PrepareCommand method, which creates a PolygonOp object and calls the latter’s Prepare method.

The Prepare method creates an MgResourceIdentifier object for the Data\SAMPLE.sdf file. This is described in topic ConnectToSdfFile.

The Prepare method uses the MgResourceIdentifier object to add the contents of the SAMPLE.sdf file to the Map drawing. This is described in the topic AddAllToMap.