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.
25 lines
472 B
25 lines
472 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Decorator
|
|
{
|
|
class Client
|
|
{
|
|
public static void HowToTest()
|
|
{
|
|
Form form = new Form();
|
|
form.Show();
|
|
|
|
Graphics gr = form.CreateGraphics();
|
|
|
|
Shape shape = new Circle(new Point(100, 100), 50);
|
|
FillShapeDecorator deco = new FillShapeDecorator(shape);
|
|
deco.Draw(gr);
|
|
}
|
|
}
|
|
}
|
|
|