示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UnitDecorator"/> class.</summary>
        /// <param name="renderer">
        /// The <see cref="MapViewRenderer"/> containing the map display to decorate.</param>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="renderer"/> is a null reference.</exception>

        public UnitDecorator(MapViewRenderer renderer)
        {
            if (renderer == null)
            {
                ThrowHelper.ThrowArgumentNullException("renderer");
            }

            this._renderer = renderer;
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="VariableDrawer"/> class.</summary>
        /// <param name="renderer">
        /// The <see cref="MapViewRenderer"/> containing the map display to decorate.</param>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="renderer"/> is a null reference.</exception>

        public VariableDrawer(MapViewRenderer renderer)
        {
            if (renderer == null)
            {
                ThrowHelper.ThrowArgumentNullException("renderer");
            }

            this._renderer = renderer;

            // trigger initial update
            ValueRangeChanged = true;
        }