public PaintBucketTool( IBrushSettings brushSettings, IColorSettings colorSettings) { _brushSettings = brushSettings; _colorSettings = colorSettings; }
public EraserTool( IBrushSettings brushSettings, IColorSettings colorSettings) { _brushSettings = brushSettings; _colorSettings = colorSettings; }
public static Brush CreateBrush(IBrushSettings brushSettings) { if (brushSettings.BrushStyle == BrushStyle.Solid) return new SolidBrush(brushSettings.Color); else return new HatchBrush((HatchStyle)brushSettings.BrushStyle, brushSettings.Color, brushSettings.BackColor); }
public LabelSettings(IBrushSettings background, IPenSettings borderPen, IFontSettings font, IBrushSettings fontBrush, ContentAlignment contentAlignment) { Background = background; BorderPen = borderPen; Font = font; FontBrush = fontBrush; ContentAlignment = contentAlignment; }