Ejemplo n.º 1
0
 public LegendHitTest(LegendControlBase legend)
 {
     if (legend == null)
     {
         throw new ArgumentNullException("legend");
     }
     _legend = legend;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LegendLayer"/> class.
        /// </summary>
        internal LegendLayer(MapControl map, LegendControlBase legend, int layerHandle)
            : base(map, layerHandle)
        {
            _legend        = legend; // must be the first line in constructor
            _icon          = null;
            _elements      = new LayerElementsCollection();
            _customObjects = new Dictionary <Guid, ILayerMetadataBase>();
            _rawObjects    = new Dictionary <System.Guid, XmlElement>();
            _recalcHeight  = true;

            Guid              = Guid.NewGuid();
            Expanded          = true;
            SmallIconWasDrawn = false;
            SymbologyCaption  = "";
        }