Exemplo n.º 1
0
        private BrushAttr getBrushAttr()
        {
            BrushAttr brushAttr = new BrushAttr(colorDialog1.Color, colorDialog2.Color,
                                                comboBoxBrushStyle.SelectedItem.ToString());

            return(brushAttr);
        }
Exemplo n.º 2
0
 public MyEllipse(MyEllipse _myEll)
     : base(_myEll)
 {
     mostLeft  = _myEll.mostLeft;
     size      = _myEll.size;
     brushAttr = new BrushAttr(_myEll.brushAttr);
 }
Exemplo n.º 3
0
 public MyRectangle(MyRectangle _myRectangle)
     : base(_myRectangle)
 {
     mostLeft  = _myRectangle.mostLeft;
     size      = _myRectangle.size;
     brushAttr = new BrushAttr(_myRectangle.brushAttr);
 }
Exemplo n.º 4
0
 public BrushAttr(BrushAttr brushAttr)
 {
     // mac dinh la mau trang va den
     if (brushAttr == null)
     {
         color     = Color.White;
         color2    = Color.Black;
         typeBrush = "SolidBrush";
     }
     else
     {
         color     = brushAttr.color;
         color2    = brushAttr.color2;
         typeBrush = brushAttr.typeBrush;
     }
 }
Exemplo n.º 5
0
 public override void updateBrushAttr(BrushAttr _brushAttr)
 {
     brushAttr = _brushAttr;
 }
Exemplo n.º 6
0
 public MyEllipse(PenAttr _penAttr, List <Point> _points) :
     base(_penAttr, _points)
 {
     calcMostLeftWidthHeight();
     brushAttr = new BrushAttr(COLOR_BRUSH_DEFAULT, "SolidBrush");
 }
Exemplo n.º 7
0
 public MyParallelogram(MyParallelogram _myHbh)
     : base(_myHbh)
 {
     brushAttr = new BrushAttr(_myHbh.brushAttr);
 }
Exemplo n.º 8
0
 public MyParallelogram(PenAttr _penAttr, List <Point> _points) :
     base(_penAttr, _points)
 {
     brushAttr = new BrushAttr(COLOR_BRUSH_DEFAULT, "SolidBrush");
 }
Exemplo n.º 9
0
 public MyCharater(MyCharater _myChar)
     : base(_myChar)
 {
     fontAttr  = new FontAttr(_myChar.fontAttr);
     brushAttr = new BrushAttr(_myChar.brushAttr);
 }
Exemplo n.º 10
0
 public MyCharater(List <Point> _points, FontAttr _fontAttr) :
     base(_points)
 {
     fontAttr  = new FontAttr(_fontAttr);
     brushAttr = new BrushAttr(COLOR_BRUSH_DARK, "SolidBrush");
 }
Exemplo n.º 11
0
 public MyPolygon(MyPolygon _myPolygon)
     : base(_myPolygon)
 {
     brushAttr = new BrushAttr(_myPolygon.brushAttr);
 }
Exemplo n.º 12
0
 public virtual void updateBrushAttr(BrushAttr _brushAttr)
 {
 }