Esempio n. 1
0
        /// <summary>
        /// Clones the shape.
        /// </summary>
        /// <returns></returns>
        public override object Clone()
        {
            var rec = new RectangleBody(this);

            rec.Tag = Tag;
            return(rec);
        }
Esempio n. 2
0
        private void tsbtnRectangle_Click(object sender, EventArgs e)
        {
            if (RectanglePen == null)
            {
                RectanglePen = new RectangleBody();
            }

            ActiveTool = new DrawShape(this.RectanglePen);
        }
Esempio n. 3
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="rectangle">Rectangle to copy.</param>
 public RectangleBody(RectangleBody rectangle) : base(rectangle)
 {
 }