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.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Decorator
|
|
|
|
|
{
|
|
|
|
|
class Circle : Shape
|
|
|
|
|
{
|
|
|
|
|
public Circle(Point origin, int radius)
|
|
|
|
|
{
|
|
|
|
|
X = origin.X;
|
|
|
|
|
Y = origin.Y;
|
|
|
|
|
Width = radius * 2;
|
|
|
|
|
Height = radius * 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Draw(Graphics g)
|
|
|
|
|
{
|
|
|
|
|
g.DrawEllipse(Pens.Black, X, Y, Width, Height);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|