Exemplo n.º 1
0
 public PaintBucketTool(
     IBrushSettings brushSettings,
     IColorSettings colorSettings)
 {
     _brushSettings = brushSettings;
     _colorSettings = colorSettings;
 }
Exemplo n.º 2
0
 public EraserTool(
     IBrushSettings brushSettings,
     IColorSettings colorSettings)
 {
     _brushSettings = brushSettings;
     _colorSettings = colorSettings;
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 public LabelSettings(IBrushSettings background, IPenSettings borderPen, IFontSettings font, 
     IBrushSettings fontBrush, ContentAlignment contentAlignment)
 {
     Background = background;
     BorderPen = borderPen;
     Font = font;
     FontBrush = fontBrush;
     ContentAlignment = contentAlignment;
 }