/// <summary> /// Draw the Backround <see cref="BaseStyleDecorator"></see> /// </summary> /// <param name="graphics">a valid graphics object</param> /// <param name="shape">the shape to fill</param> /// protected virtual void FillShape(Graphics graphics, BaseShape shape) { if (graphics == null) { throw new ArgumentNullException("graphics"); } if (shape == null) { throw new ArgumentNullException("shape"); } shape.FillShape(graphics, new SolidFillPattern(this.StyleDecorator.BackColor), this.StyleDecorator.DisplayRectangle); }
/// <summary> /// Draw the Backround <see cref="BaseStyleDecorator"></see> /// </summary> /// <param name="graphics">a valid graphics object</param> /// <param name="shape">the shape to fill</param> /// protected virtual void FillShape (Graphics graphics,BaseShape shape) { if (graphics == null) { throw new ArgumentNullException("graphics"); } if (shape == null) { throw new ArgumentNullException("shape"); } shape.FillShape(graphics, new SolidFillPattern(this.styleDecorator.BackColor), this.styleDecorator.DisplayRectangle); }