示例#1
0
 public PaintBucketTool(
     IBrushSettings brushSettings,
     IColorSettings colorSettings)
 {
     _brushSettings = brushSettings;
     _colorSettings = colorSettings;
 }
示例#2
0
 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;
 }