Esempio n. 1
0
 public Shape(Colors color, FillOption fill, int penSize)
 {
     shapeCounter++;
     Name              = GetType().Name;
     this.color        = color;
     this.penSize      = penSize;
     this.fill         = fill;
     pictureBox        = new PictureBox();
     pictureBox.Parent = pb;
 }
Esempio n. 2
0
 public Line(Colors color, FillOption fill, int penSize) : base(color, fill, penSize)
 {
     count++;
     Name += count;
 }
Esempio n. 3
0
 public Triangle(Colors color, FillOption fill, int penSize) : base(color, fill, penSize)
 {
     count++;
     Name += count;
     //pictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
 }
Esempio n. 4
0
 public Square(Colors color, FillOption fill, int penSize) : base(color, fill, penSize)
 {
     count++;
     Name  += count;
     Height = Width;
 }
Esempio n. 5
0
 public Circle(Colors color, FillOption fill, int penSize) : base(color, fill, penSize)
 {
     count++;
     Name += count;
     Width = Height;
 }