void OnResponseCapabalities(object sender, CapabilitiesRespondedEventArgs e) { // Specify an active layer for the map control. Provider.ActiveLayerName = e.Layers[0].Name; // Recieve information on the active layer. label1.Text = string.Format("Layer name: {0}, Layer title: {1}", e.Layers[0].Name, e.Layers[0].Title); }
private void OnResponseCapabilities(object sender, CapabilitiesRespondedEventArgs e) { listBox.ItemsSource = e.Layers; }
void OnResponseCapabalities(object sender, CapabilitiesRespondedEventArgs e) { tlLayers.DataSource = e.Layers; }