C# Class EarthquakeAddin.EarthquakeWidget

Inheritance: System.Windows.Controls.UserControl, IWidget, IMapWidgetConsumer
Afficher le fichier Open project: Esri/earthquakes-feed-opsdashboard-addin

Private Properties

Свойство Type Description
AddEarthquakesToMap void
FeedListBox_SelectionChanged void
GetMapAndAddEarthquakes void
_xmlData_DataChanged void

Méthodes publiques

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

Private Methods

Méthode 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 méthode

public Configure ( Window owner, IList dataSources ) : bool
owner System.Windows.Window
dataSources IList
Résultat bool

EarthquakeWidget() public méthode

public EarthquakeWidget ( ) : System
Résultat System

OnActivated() public méthode

public OnActivated ( ) : void
Résultat void

OnDeactivated() public méthode

public OnDeactivated ( ) : void
Résultat void