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; }
public virtual IDrawObject Clone() { SingleRectangle singleRectangle = new SingleRectangle(); singleRectangle.Copy(this); return(singleRectangle); }
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; }