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; }
public Line(Colors color, FillOption fill, int penSize) : base(color, fill, penSize) { count++; Name += count; }
public Triangle(Colors color, FillOption fill, int penSize) : base(color, fill, penSize) { count++; Name += count; //pictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; }
public Square(Colors color, FillOption fill, int penSize) : base(color, fill, penSize) { count++; Name += count; Height = Width; }
public Circle(Colors color, FillOption fill, int penSize) : base(color, fill, penSize) { count++; Name += count; Width = Height; }