Beispiel #1
0
 public NodePointRectangle(SingleRectangle owner, SingleRectangle.NodePosition nodePosition)
 {
     this.owner            = owner;
     this.clone            = this.owner.Clone() as SingleRectangle;
     this.owner.IsSelected = false;
     this.clone.IsSelected = true;
 }
Beispiel #2
0
        public virtual IDrawObject Clone()
        {
            SingleRectangle singleRectangle = new SingleRectangle();

            singleRectangle.Copy(this);
            return(singleRectangle);
        }
Beispiel #3
0
 public virtual void Copy(SingleRectangle singleRectangle)
 {
     base.Copy(singleRectangle);
     this.FirstPoint           = singleRectangle.FirstPoint;
     this.SecondPoint          = singleRectangle.SecondPoint;
     this.LeftTopPoint         = singleRectangle.LeftTopPoint;
     this.LeftBottomPoint      = singleRectangle.LeftBottomPoint;
     this.RightTopPoint        = singleRectangle.RightTopPoint;
     this.RightBottomPoint     = singleRectangle.RightBottomPoint;
     this.IsSelected           = singleRectangle.IsSelected;
     this.StartMovePoint       = singleRectangle.StartMovePoint;
     this.IsClockWiseDirection = singleRectangle.IsClockWiseDirection;
     this.OverCuttingLength    = singleRectangle.OverCuttingLength;
     this.OverCuttingPoints    = singleRectangle.OverCuttingPoints;
     this.StartMovePosition    = singleRectangle.StartMovePosition;
     this.drawStatus           = singleRectangle.drawStatus;
     this.SN = singleRectangle.SN;
 }