/// <summary> /// /// </summary> /// <param name="layer"></param> internal void AddWFSTLayer(WFSTConfig layer) { LayerConfig layerConfig = this.readLayerConfigFromFile(); layerConfig.wfstlayers.Add(layer); this.saveLayerConfigToFile(layerConfig); }
/// <summary> /// /// </summary> /// <param name="layer"></param> internal void AddWFSTLayer(WFSTConfig layer) { LayerConfig layerConfig = this.readLayerConfigFromFile(); layer.id = this.GenerateLayerId(layerConfig).ToString(); layerConfig.wfstlayers.Add(layer); this.saveLayerConfigToFile(layerConfig); }
/// <summary> /// Update WFS-layer /// </summary> /// <param name="layer"></param> internal void UpdateWFSTLayer(WFSTConfig layer) { LayerConfig layerConfig = this.readLayerConfigFromFile(); var index = layerConfig.wfstlayers.FindIndex(item => item.id == layer.id); if (index != -1) { layerConfig.wfstlayers[index] = layer; } this.saveLayerConfigToFile(layerConfig); }
public void Put(WFSTConfig config) { this.settingsDataContext.UpdateWFSTLayer(config); }
public void Post(WFSTConfig config) { this.settingsDataContext.AddWFSTLayer(config); }
public void UpdateWFSTLayer(WFSTConfig layer) { this.settingsDataContext.UpdateWFSTLayer(layer); }
public void AddWFSTLayer(WFSTConfig layer) { this.settingsDataContext.AddWFSTLayer(layer); }