/// <summary> /// /// </summary> /// <param name="layer"></param> internal void AddWFSLayer(WFSConfig layer) { LayerConfig layerConfig = this.readLayerConfigFromFile(); layerConfig.wfslayers.Add(layer); this.saveLayerConfigToFile(layerConfig);; }
/// <summary> /// /// </summary> /// <param name="layer"></param> internal void AddWFSLayer(WFSConfig layer) { LayerConfig layerConfig = this.readLayerConfigFromFile(); layer.id = this.GenerateLayerId(layerConfig).ToString(); layerConfig.wfslayers.Add(layer); this.saveLayerConfigToFile(layerConfig);; }
/// <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); }
public void UpdateWFSLayer(WFSConfig layer) { this.settingsDataContext.UpdateWFSLayer(layer); }
public void AddWFSLayer(WFSConfig layer) { this.settingsDataContext.AddWFSLayer(layer); }
public void Put(WFSConfig config) { this.settingsDataContext.UpdateWFSLayer(config); }
public void Post(WFSConfig config) { this.settingsDataContext.AddWFSLayer(config); }