Пример #1
0
        internal void Init()
        {
            StyleBuilder sb = new StyleBuilder(null, null);

            penStyle       = sb.Parse("pc=blue");
            brushStyle     = sb.Parse("bc=LightGray");
            textStyle      = sb.Parse("fn=Tahoma fz=10");
            selStyle       = sb.Parse("pc=yellow pw=2 pc2=red pds2=dash");
            editLineStyle  = sb.Parse("pc=yellow pw=3 pc2=red");
            editPointStyle = sb.Parse("pc=red");
        }
Пример #2
0
 public PenStyleBuilder(StyleBuilder sb, string prefix) : base(sb, prefix)
 {
     sbBrush = new BrushStyleBuilder(sb, prefix + "b");
 }
Пример #3
0
 public TextStyleBuilder(StyleBuilder sb) : base(sb, "")
 {
     sbBrush = new BrushStyleBuilder(sb, "tb");
 }
Пример #4
0
 public ImageStyleBuilder(StyleBuilder sb, string prefix) : base(sb, prefix)
 {
 }
Пример #5
0
 public BrushStyleBuilder(StyleBuilder sb, string prefix) : base(sb, prefix)
 {
     sbImage = new ImageStyleBuilder(sb, prefix + "i");
 }
Пример #6
0
 protected BaseStyleBuilder(StyleBuilder sb, string prefix)
 {
     this.sb     = sb;
     this.prefix = prefix;
 }