Exemplo n.º 1
0
 /// <summary>
 /// Update WFS-layer
 /// </summary>
 /// <param name="layer"></param>
 internal void UpdateWFSLayer(WFSConfig layer)
 {
     LayerConfig layerConfig = this.readLayerConfigFromFile();
     var index = layerConfig.wfslayers.FindIndex(item => item.id == layer.id);
     if (index != -1)
     {
         layerConfig.wfslayers[index] = layer;
     }
     this.saveLayerConfigToFile(layerConfig);
 }
Exemplo n.º 2
0
 public void UpdateWFSLayer(WFSConfig layer)
 {
     this.settingsDataContext.UpdateWFSLayer(layer);
 }
Exemplo n.º 3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="layer"></param>
 internal void AddWFSLayer(WFSConfig layer)
 {
     LayerConfig layerConfig = this.readLayerConfigFromFile();
     layerConfig.wfslayers.Add(layer);
     this.saveLayerConfigToFile(layerConfig); ;
 }
Exemplo n.º 4
0
 public void AddWFSLayer(WFSConfig layer)
 {
     this.settingsDataContext.AddWFSLayer(layer);
 }