개정판 e1b36bc0
Feature: Grouping 기능 추가(Ctrl+G : Group, Ctrl+Shift+G : Ungroup)
Change-Id: I99a3309acd55799ff7101522feaa035225b80e48
MarkupToPDF/Controls/Shape/RectangleControl.cs | ||
---|---|---|
514 | 514 |
|
515 | 515 |
public override void Copy(CommentUserInfo lhs) |
516 | 516 |
{ |
517 |
if (lhs is RectangleControl rectangleControl) |
|
518 |
{ |
|
519 |
this.LineSize = rectangleControl.LineSize; |
|
520 |
this.Paint = rectangleControl.Paint; |
|
521 |
this.StartPoint = new System.Windows.Point(rectangleControl.StartPoint.X, rectangleControl.StartPoint.Y); |
|
522 |
this.EndPoint = new System.Windows.Point(rectangleControl.EndPoint.X, rectangleControl.EndPoint.Y); |
|
523 |
this.LeftBottomPoint = new System.Windows.Point(rectangleControl.LeftBottomPoint.X, rectangleControl.LeftBottomPoint.Y); |
|
524 |
this.TopRightPoint = new System.Windows.Point(rectangleControl.TopRightPoint.X, rectangleControl.TopRightPoint.Y); |
|
525 |
this.CommentAngle = rectangleControl.CommentAngle; |
|
526 |
this.StrokeColor = rectangleControl.StrokeColor; |
|
527 |
this.DashSize = rectangleControl.DashSize; |
|
528 |
this.Opacity = rectangleControl.Opacity; |
|
529 |
this.PointSet = rectangleControl.PointSet.ConvertAll(x => new System.Windows.Point(x.X, x.Y)); |
|
530 |
this.UserID = rectangleControl.UserID; |
|
531 |
this.Memo = rectangleControl.Memo; |
|
532 |
this.ZIndex = rectangleControl.ZIndex; |
|
517 |
if (lhs is RectangleControl item) |
|
518 |
{ |
|
519 |
this.LineSize = item.LineSize; |
|
520 |
this.Paint = item.Paint; |
|
521 |
this.StartPoint = new System.Windows.Point(item.StartPoint.X, item.StartPoint.Y); |
|
522 |
this.EndPoint = new System.Windows.Point(item.EndPoint.X, item.EndPoint.Y); |
|
523 |
this.LeftBottomPoint = new System.Windows.Point(item.LeftBottomPoint.X, item.LeftBottomPoint.Y); |
|
524 |
this.TopRightPoint = new System.Windows.Point(item.TopRightPoint.X, item.TopRightPoint.Y); |
|
525 |
this.CommentAngle = item.CommentAngle; |
|
526 |
this.StrokeColor = item.StrokeColor; |
|
527 |
this.DashSize = item.DashSize; |
|
528 |
this.Opacity = item.Opacity; |
|
529 |
this.PointSet = item.PointSet.ConvertAll(x => new System.Windows.Point(x.X, x.Y)); |
|
530 |
this.UserID = item.UserID; |
|
531 |
this.Memo = item.Memo; |
|
532 |
this.ZIndex = item.ZIndex; |
|
533 |
this.GroupID = item.GroupID; |
|
533 | 534 |
} |
534 | 535 |
} |
535 | 536 |
|
... | ... | |
726 | 727 |
ctrl.Memo = this.Memo; |
727 | 728 |
|
728 | 729 |
ctrl.ZIndex = this.ZIndex; |
730 |
ctrl.GroupID = this.GroupID; |
|
729 | 731 |
|
730 | 732 |
return "|DZ|" + JsonSerializerHelper.CompressString((ctrl.JsonSerialize())); |
731 | 733 |
}; |
... | ... | |
756 | 758 |
PointSet = s.PointSet, |
757 | 759 |
UserID = s.UserID, |
758 | 760 |
Memo = s.Memo, |
759 |
ZIndex = s.ZIndex |
|
761 |
ZIndex = s.ZIndex, |
|
762 |
GroupID = s.GroupID |
|
760 | 763 |
}; |
761 | 764 |
} |
762 | 765 |
} |
내보내기 Unified diff