C# Class NABarrierLocationEditor.EditorForm

Inheritance: System.Windows.Forms.Form
显示文件 Open project: Esri/arcobjects-sdk-community-samples Class Usage Examples

Public Methods

Method Description
EditorForm ( IApplication app, INAContext context, IFeature barrier ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
FlashFeature ( IFeature pFeature, esriNetworkEdgeDirection direction ) : void

Flash the feature geometry on the map The feature being flashed A hook to the application display The digitized direction of the barrier with respect to the underlying source feature

FlashLine ( IScreenDisplay pDisplay, IGeometry pGeometry, esriNetworkEdgeDirection direction ) : void

Flash a line feature on the map The map screen The geometry of the feature to be flashed The digitized direction of the barrier with respect to the underlying source feature

FlashPoint ( IScreenDisplay pDisplay, IGeometry pGeometry ) : void

Flash a point feature on the map The map screen The geometry of the feature to be flashed

GetBarrierSubcurve ( INetworkEdge netEdge, IFeature sourceFeature, System.Windows.Forms.DataGridViewRow selectedRow ) : ICurve

Take a network edge, a source feature, and a row from the edges dataGrid, and determine the geometry to be flashed on the map The edge upon which the barrier resides The source feature corresponding to the network edge The row containing the barrier's location range information

GetDirectionValue ( System.Windows.Forms.DataGridViewRow selectedRow ) : esriNetworkEdgeDirection

Determine the esriNetworkEdgeDirection from the value in the dataGridView cell The row containing the barrier's location range information

GetElementByEID ( string eidString, string datagridviewName ) : INetworkElement

Take an EID value as a string from one of the dataGridView controls and find the network element that corresponds to the EID The EID value as a string The name of the dataGrid that held the EID

GetSourceFeature ( INetworkElement element ) : IFeature

Take a network element and return its corresponding source feature The return source feature corresponds to this element

InitializeComponent ( ) : void

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

LoadDatagrids ( ) : void

Load both the Edge and Junction dataGrids with the information in the barrier feature The barrier being loaded into dataGrids

ValidateDataGrid ( System.Windows.Forms.DataGridView dgv ) : bool

ValidateDataGrid goes row by row and checks that the values in the grid are valid The dataGrid to validate

ValidateEID ( string value, esriNetworkElementType elementType ) : bool

Verify that the EID corresponds to a valid network element The EID passed as a string The type of element to be verified

ValidateRow ( System.Windows.Forms.DataGridViewRow row ) : void

ValidateRow checks the cell value in the passed-in row The row to validate The fields to be validated The name of the dataGrid whose row is being validated

btnCancel_Click ( object sender, EventArgs e ) : void

Occurs when the user clicks the Cancel button. The control raising this event Arguments associated with the event

btnSave_Click ( object sender, EventArgs e ) : void

Occurs when the user clicks the Save button. The barrier information is collected out of the junction and edge barrier dataGrids, then stored back into the original barrier feature as a replacement to the existing barrier information. The original geometry of the barrier remains unaltered. The control raising this event Arguments associated with the event

btnZoomToBarrier_Click ( object sender, EventArgs e ) : void

Occurs when the user clicks the Zoom To Barrier Geometry button. The map will zoom to the extent of the Shape of the barrier. The control raising this event Arguments associated with the event

dataGridView_RowHeaderMouseClick ( object sender, System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void

Occurs when a dataGrid row header is clicked. It is used here to flash the geometry of the newly selected row The control raising this event Arguments associated with the event

Method Details

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

EditorForm() public method

public EditorForm ( IApplication app, INAContext context, IFeature barrier ) : System
app IApplication
context INAContext
barrier IFeature
return System