C# Class OperationsDashboardAddIns.SearchNearbyFeatureAction

Inheritance: IFeatureAction
显示文件 Open project: Esri/tableandsearch-opsdashboard-addin

Public Methods

Method Description
CanExecute ( ESRI BufferDS, ESRI.ArcGIS.Client BufferFeature ) : bool

This function determines if the feature action will be enabled or disabled In order for the FeatureAction to execute: - The map widget that contains the dataSource from which the buffer area is generated must not be null - The Target DataSource that will be queried must not be null - The radius (Distance) of the buffer area must be >0

Configure ( System owner ) : bool
Execute ( ESRI BufferDS, ESRI.ArcGIS.Client BufferFeature ) : void

This function creates the buffer area from user's selected feature

QueryForFeatures ( ESRI.ArcGIS.Client bufferPolygon ) : Task
SearchNearbyFeatureAction ( ) : System
SearchNearbyFeatureAction ( string targetDataSourceId, int bufferDistance, ESRI.ArcGIS.Client bufferUnit ) : System

Private Methods

Method Description
CreateBufferParameters ( ESRI.ArcGIS.Client feature, ESRI.ArcGIS.Client mwMap ) : ESRI.ArcGIS.Client.Tasks.BufferParameters
GeometryServiceFailed ( object sender, ESRI.ArcGIS.Client e ) : void
GeometryTask_BufferCompleted ( object sender, ESRI.ArcGIS.Client e ) : void

Method Details

CanExecute() public method

This function determines if the feature action will be enabled or disabled In order for the FeatureAction to execute: - The map widget that contains the dataSource from which the buffer area is generated must not be null - The Target DataSource that will be queried must not be null - The radius (Distance) of the buffer area must be >0
public CanExecute ( ESRI BufferDS, ESRI.ArcGIS.Client BufferFeature ) : bool
BufferDS ESRI BufferDS is the data source containing the BufferFeature
BufferFeature ESRI.ArcGIS.Client BufferFeature is the feature used to generate the buffer area
return bool

Configure() public method

public Configure ( System owner ) : bool
owner System
return bool

Execute() public method

This function creates the buffer area from user's selected feature
public Execute ( ESRI BufferDS, ESRI.ArcGIS.Client BufferFeature ) : void
BufferDS ESRI BufferDS is the data source containing the BufferFeature
BufferFeature ESRI.ArcGIS.Client BufferFeature is the feature used to generate the buffer area
return void

QueryForFeatures() public method

public QueryForFeatures ( ESRI.ArcGIS.Client bufferPolygon ) : Task
bufferPolygon ESRI.ArcGIS.Client
return Task

SearchNearbyFeatureAction() public method

public SearchNearbyFeatureAction ( ) : System
return System

SearchNearbyFeatureAction() public method

public SearchNearbyFeatureAction ( string targetDataSourceId, int bufferDistance, ESRI.ArcGIS.Client bufferUnit ) : System
targetDataSourceId string
bufferDistance int
bufferUnit ESRI.ArcGIS.Client
return System