You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
445 B
24 lines
445 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Decorator
|
|
{
|
|
class FillShapeDecorator : ShapeDecorator
|
|
{
|
|
public FillShapeDecorator(Shape shape) : base(shape)
|
|
{
|
|
|
|
}
|
|
|
|
public override void Draw(Graphics g)
|
|
{
|
|
component.Draw(g);
|
|
|
|
g.FillEllipse(Brushes.Green, component.X, component.Y, component.Width, component.Height);
|
|
}
|
|
}
|
|
}
|
|
|