C# Class EarthquakeAddin.EarthquakeWidget

Inheritance: System.Windows.Controls.UserControl, IWidget, IMapWidgetConsumer
Mostrar archivo Open project: Esri/earthquakes-feed-opsdashboard-addin

Private Properties

Property Type Description
AddEarthquakesToMap void
FeedListBox_SelectionChanged void
GetMapAndAddEarthquakes void
_xmlData_DataChanged void

Public Methods

Method Description
Configure ( Window owner, IList dataSources ) : bool
EarthquakeWidget ( ) : System
OnActivated ( ) : void
OnDeactivated ( ) : void

Private Methods

Method Description
AddEarthquakesToMap ( ) : void

Extracts earthquake information from the feed and turns this into a graphics layer in the map.

FeedListBox_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void

Handler for when the feed list box selection changes.

GetMapAndAddEarthquakes ( ) : void

Gets the Map from a specific MapWidget that is identified by ID, accounting for widgets that may not yet be initialized by hooking an event handler and waiting for initialization of uninitialized maps. Once retrieved, add earthquakes to the map based on the currently selected feed.

_xmlData_DataChanged ( object sender, EventArgs e ) : void

Called when the feed has been read.

Method Details

Configure() public method

public Configure ( Window owner, IList dataSources ) : bool
owner System.Windows.Window
dataSources IList
return bool

EarthquakeWidget() public method

public EarthquakeWidget ( ) : System
return System

OnActivated() public method

public OnActivated ( ) : void
return void

OnDeactivated() public method

public OnDeactivated ( ) : void
return void