예제 #1
0
 internal LayerCollection(MapControl mapControl, IMuteLegend legend)
     : base(mapControl)
 {
     _legend = legend as LegendControl;
     if (_legend == null)
     {
         throw new NullReferenceException("Invalid legend reference.");
     }
 }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LegendGroup"/> class.
        /// </summary>
        internal LegendGroup(LegendControl leg, int handle)
        {
            _legend       = leg;
            _layers       = new List <LegendLayer>();
            _icon         = null;
            _recalcHeight = true;

            Handle      = handle;
            Visible     = Visibility.AllVisible;
            Expanded    = true;
            StateLocked = false;
        }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LegendGroups"/> class.
 /// </summary>
 internal LegendGroups(LegendControl leg)
 {
     _legend = leg;      // must be first in constructor
 }