Example #1
0
        /// <summary>
        ///     Clones the given layer and adds it to the profile, after the original
        /// </summary>
        /// <param name="layer"></param>
        public void CloneLayer(LayerModel layer)
        {
            var clone = GeneralHelpers.Clone(layer);

            layer.InsertAfter(clone);

            UpdateLayerList(clone);
        }
Example #2
0
        public LayerModel AddLayer(LayerModel afterLayer)
        {
            // Create a new layer
            var layer = LayerModel.CreateLayer();

            if (afterLayer != null)
            {
                afterLayer.InsertAfter(layer);
            }
            else
            {
                Layers.Add(layer);
                FixOrder();
            }

            return(layer);
        }
        /// <summary>
        ///     Clones the given layer and adds it to the profile, after the original
        /// </summary>
        /// <param name="layer"></param>
        public void CloneLayer(LayerModel layer)
        {
            var clone = GeneralHelpers.Clone(layer);
            layer.InsertAfter(clone);

            UpdateLayerList(clone);
        }