Пример #1
0
 public StyleBuilder(IColorIndexer ci, IImageIndexer ii)
 {
     this.ci = ci;
     this.ii = ii;
     sbPen   = new PenStyleBuilder(this, "p");
     sbPen2  = new PenStyleBuilder(this, "sp");
     sbBrush = new BrushStyleBuilder(this, "b");
     sbImage = new ImageStyleBuilder(this, "i");
     sbText  = new TextStyleBuilder(this);
     sbExt   = new ExtStyleBuilder(this);
 }
Пример #2
0
 public BrushStyleBuilder(StyleBuilder sb, string prefix) : base(sb, prefix)
 {
     sbImage = new ImageStyleBuilder(sb, prefix + "i");
 }