public string GetSelectedWfsLayerName()
        {
            if (!WfsGridStatisticsLayerId.HasValue)
            {
                return("-");
            }

            WfsLayerViewModel selectedLayer = WfsLayers.FirstOrDefault(layer => layer.Id == WfsGridStatisticsLayerId.Value);

            return(selectedLayer != null ? selectedLayer.Name : "-");
        }
Exemplo n.º 2
0
        public int RemoveWfsLayer(int id)
        {
            WfsLayerSetting removeItem = WfsLayers.FirstOrDefault(wfsLayerSetting => wfsLayerSetting.Id == id);

            return(WfsLayers.Remove(removeItem) ? 1 : 0);
        }
Exemplo n.º 3
0
 public WfsLayerSetting GetWfsLayer(int id)
 {
     return(WfsLayers.FirstOrDefault(wfsLayerSetting => wfsLayerSetting.Id == id));
 }