Exemplo n.º 1
0
        /// <summary>
        /// Clone LayerNode
        /// </summary>
        /// <returns>LayerNode</returns>
        public override object Clone()
        {
            LayerNode aLN = new LayerNode((MapLayer)_mapLayer.Clone());

            if (this.IsExpanded)
            {
                aLN.Expand();
            }

            if (_legendNodes.Count > 0)
            {
                foreach (LegendNode aLegNode in _legendNodes)
                {
                    aLN.LegendNodes.Add(aLegNode.Clone() as LegendNode);
                }
            }

            return(aLN);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Add layer node
 /// </summary>
 /// <param name="aLayer">layer node</param>
 public void AddLayer(LayerNode aLayer)
 {
     _Layers.Add(aLayer);
     aLayer.GroupHandle = _GroupHandel;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Insert layer node
 /// </summary>
 /// <param name="aLayer">layer node</param>
 /// <param name="index">index</param>
 public void InsertLayer(LayerNode aLayer, int index)
 {
     _Layers.Insert(index, aLayer);
     aLayer.GroupHandle = _GroupHandel;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Get layer node index
 /// </summary>
 /// <param name="aLayer">layer node</param>
 /// <returns>index</returns>
 public int GetLayerIndex(LayerNode aLayer)
 {
     return(_Layers.IndexOf(aLayer));
 }
Exemplo n.º 5
0
 /// <summary>
 /// Remove a layer node
 /// </summary>
 /// <param name="aLayer">layer node</param>
 public void RemoveLayer(LayerNode aLayer)
 {
     _Layers.Remove(aLayer);
     aLayer.GroupHandle = -1;
 }