|
using System;
using HypotheticalShapeLib;
namespace Decorators
{
public class ShapeFiller : ShapeDecoratorBase
{
public ShapeFiller(Shape shape)
: base(shape)
{
}
protected override void Paint()
{
// Draw the Shape First
base.Paint();
Console.WriteLine(string.Format("Filling Shape - {0}", _shape.TypeName));
}
}
public class ShapeBorderThickener : ShapeDecoratorBase
{
public ShapeBorderThickener(Shape shape)
: base(shape)
{
}
protected override void Paint()
{
// Draw the Shape First
base.Paint();
Console.WriteLine(string.Format("Thickening border of Shape - {0}", _shape.TypeName));
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
I am Sanjeev Venkat working for HCL Technologies since 2003. I've 9 years of experience in Software Development. My core expertise include Windows Device Drivers, COM, C++, .NET.