Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="layer"></param>
        internal void AddWFSTLayer(WFSTConfig layer)
        {
            LayerConfig layerConfig = this.readLayerConfigFromFile();

            layerConfig.wfstlayers.Add(layer);
            this.saveLayerConfigToFile(layerConfig);
        }
Beispiel #2
0
        /// <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);
        }
Beispiel #3
0
        /// <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);
        }
Beispiel #4
0
 public void Put(WFSTConfig config)
 {
     this.settingsDataContext.UpdateWFSTLayer(config);
 }
Beispiel #5
0
 public void Post(WFSTConfig config)
 {
     this.settingsDataContext.AddWFSTLayer(config);
 }
Beispiel #6
0
 public void UpdateWFSTLayer(WFSTConfig layer)
 {
     this.settingsDataContext.UpdateWFSTLayer(layer);
 }
Beispiel #7
0
 public void AddWFSTLayer(WFSTConfig layer)
 {
     this.settingsDataContext.AddWFSTLayer(layer);
 }