Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="layer"></param>
        internal void AddWFSLayer(WFSConfig layer)
        {
            LayerConfig layerConfig = this.readLayerConfigFromFile();

            layerConfig.wfslayers.Add(layer);
            this.saveLayerConfigToFile(layerConfig);;
        }
Exemple #2
0
        /// <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);;
        }
Exemple #3
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);
        }
Exemple #4
0
 public void UpdateWFSLayer(WFSConfig layer)
 {
     this.settingsDataContext.UpdateWFSLayer(layer);
 }
Exemple #5
0
 public void AddWFSLayer(WFSConfig layer)
 {
     this.settingsDataContext.AddWFSLayer(layer);
 }
Exemple #6
0
 public void Put(WFSConfig config)
 {
     this.settingsDataContext.UpdateWFSLayer(config);
 }
Exemple #7
0
 public void Post(WFSConfig config)
 {
     this.settingsDataContext.AddWFSLayer(config);
 }