C# Class RunGPAsync.RunGPForm

Show file Open project: Esri/arcobjects-sdk-community-samples

Public Methods

Method Description
CreateRGBColor ( System myRed, System myGreen, System myBlue ) : ESRI.ArcGIS.Display.IRgbColor

Generate an RgbColor by specifying the amount of Red, Green and Blue.

CreateSimpleFillSymbol ( ESRI fillColor, ESRI fillStyle, ESRI borderColor, ESRI borderStyle, System borderWidth ) : ESRI.ArcGIS.Display.ISimpleFillSymbol

Create a simple fill symbol by specifying a color, outline color and fill style.

CreateSimpleLineSymbol ( ESRI rgbColor, System inWidth, ESRI inStyle ) : ESRI.ArcGIS.Display.ISimpleLineSymbol

Create a simple line symbol by specifying a color, width and line style.

CreateSimpleMarkerSymbol ( ESRI rgbColor, ESRI inputStyle ) : ESRI.ArcGIS.Display.ISimpleMarkerSymbol

Create a simple marker symbol by specifying and input color and marker style.

RunGPForm ( ) : System

Initializes a new instance of the RunGPForm class which represents the ArcGIS Engine application. The constructor is used to perform setup: the ListViewControl is configured, a new Geoprocessor object is created, the output result directory is specified and event handlers created in order to listen to geoprocessing events. A helper method called SetupMap is called to create, add and symbolize the layers used by the application.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

IsDecimal ( string theValue ) : bool
IsInteger ( string theValue ) : bool
SetupMap ( ) : void

Loads and symbolizes data used by the application. Selects a city and zooms to it

_gp_MessagesCreated ( object sender, MessagesCreatedEventArgs e ) : void

Handles the MessagesCreated event.

_gp_ProgressChanged ( object sender, ESRI e ) : void

Handles the ProgressChanged event.

_gp_ToolExecuted ( object sender, ToolExecutedEventArgs e ) : void

Handles the ToolExecuted event. All tools end by firing this event. If the tool executed successfully the next tool in the queue is removed and submitted for execution. If unsuccessful, geoprocessing is terminated, an error message is written to the ListViewControl and the is queue cleared. After the final tool has executed the result layer is added to the Map.

_gp_ToolExecuting ( object sender, ToolExecutingEventArgs e ) : void

Handles the ToolExecuting event. All tools start by firing this event.

btnRunGP_Click ( object sender, EventArgs e ) : void

Handles the click event of the Button and starts asynchronous geoprocessing.

txtBufferDistance_TextChanged ( object sender, EventArgs e ) : void

Method Details

CreateRGBColor() public method

Generate an RgbColor by specifying the amount of Red, Green and Blue.
public CreateRGBColor ( System myRed, System myGreen, System myBlue ) : ESRI.ArcGIS.Display.IRgbColor
myRed System A byte (0 to 255) used to represent the Red color. Example: 0
myGreen System A byte (0 to 255) used to represent the Green color. Example: 255
myBlue System A byte (0 to 255) used to represent the Blue color. Example: 123
return ESRI.ArcGIS.Display.IRgbColor

CreateSimpleFillSymbol() public method

Create a simple fill symbol by specifying a color, outline color and fill style.
public CreateSimpleFillSymbol ( ESRI fillColor, ESRI fillStyle, ESRI borderColor, ESRI borderStyle, System borderWidth ) : ESRI.ArcGIS.Display.ISimpleFillSymbol
fillColor ESRI An IRGBColor interface. The color for the inside of the fill symbol.
fillStyle ESRI An esriSimpleLineStyle enumeration for the inside fill symbol. Example: esriSFSSolid.
borderColor ESRI An IRGBColor interface. The color for the outside line border of the fill symbol.
borderStyle ESRI An esriSimpleLineStyle enumeration for the outside line border. Example: esriSLSSolid.
borderWidth System A System.Double that is the width of the outside line border in points. Example: 2
return ESRI.ArcGIS.Display.ISimpleFillSymbol

CreateSimpleLineSymbol() public method

Create a simple line symbol by specifying a color, width and line style.
public CreateSimpleLineSymbol ( ESRI rgbColor, System inWidth, ESRI inStyle ) : ESRI.ArcGIS.Display.ISimpleLineSymbol
rgbColor ESRI An IRGBColor interface.
inWidth System A System.Double that is the width of the line symbol in points. Example: 2
inStyle ESRI An esriSimpleLineStyle enumeration. Example: esriSLSSolid.
return ESRI.ArcGIS.Display.ISimpleLineSymbol

CreateSimpleMarkerSymbol() public method

Create a simple marker symbol by specifying and input color and marker style.
public CreateSimpleMarkerSymbol ( ESRI rgbColor, ESRI inputStyle ) : ESRI.ArcGIS.Display.ISimpleMarkerSymbol
rgbColor ESRI An IRGBColor interface.
inputStyle ESRI An esriSimpleMarkerStyle enumeration. Example: esriSMSCircle.
return ESRI.ArcGIS.Display.ISimpleMarkerSymbol

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

RunGPForm() public method

Initializes a new instance of the RunGPForm class which represents the ArcGIS Engine application. The constructor is used to perform setup: the ListViewControl is configured, a new Geoprocessor object is created, the output result directory is specified and event handlers created in order to listen to geoprocessing events. A helper method called SetupMap is called to create, add and symbolize the layers used by the application.
public RunGPForm ( ) : System
return System