private void wmsClient_LayerAdded(WmsClient client, WmsMapLayer layer)
 {
     CheckSrs();
     _listBoxLayers.Items.Add(new WmsMapLayerWrapper(layer, _wmsClient.Capabilities));
     _listBoxLayers.SelectedIndex = client.GetLayerIndex(layer);
     _listBoxLayers.Enabled = _listBoxLayers.Items.Count > 0;
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="layer"></param>
 /// <param name="capabilities"></param>
 public WmsMapLayerWrapper(WmsMapLayer layer, ICapabilities capabilities)
 {
     _layer = layer;
     _capabilities = capabilities;
 }