개정판 e1b36bc0
Feature: Grouping 기능 추가(Ctrl+G : Group, Ctrl+Shift+G : Ungroup)
Change-Id: I99a3309acd55799ff7101522feaa035225b80e48
MarkupToPDF/Controls/Shape/RectCloudControl.cs | ||
---|---|---|
45 | 45 |
|
46 | 46 |
public override void Copy(CommentUserInfo lhs) |
47 | 47 |
{ |
48 |
if (lhs is RectCloudControl rectCloudControl)
|
|
48 |
if (lhs is RectCloudControl item)
|
|
49 | 49 |
{ |
50 |
this.StartPoint = new System.Windows.Point(rectCloudControl.StartPoint.X, rectCloudControl.StartPoint.Y); |
|
51 |
this.EndPoint = new System.Windows.Point(rectCloudControl.EndPoint.X, rectCloudControl.EndPoint.Y); |
|
52 |
this.LeftBottomPoint = new System.Windows.Point(rectCloudControl.LeftBottomPoint.X, rectCloudControl.LeftBottomPoint.Y); |
|
53 |
this.TopRightPoint = new System.Windows.Point(rectCloudControl.TopRightPoint.X, rectCloudControl.TopRightPoint.Y); |
|
54 |
this.Paint = rectCloudControl.Paint; |
|
55 |
this.Opacity = rectCloudControl.Opacity; |
|
56 |
this.DashSize = rectCloudControl.DashSize; |
|
57 |
this.PointSet = rectCloudControl.PointSet.ConvertAll(x => new System.Windows.Point(x.X, x.Y)); |
|
58 |
this.StrokeColor = rectCloudControl.StrokeColor; |
|
59 |
this.ArcLength = rectCloudControl.ArcLength; |
|
60 |
this.LineSize = rectCloudControl.LineSize; |
|
61 |
this.UserID = rectCloudControl.UserID; |
|
62 |
this.Memo = rectCloudControl.Memo; |
|
63 |
this.ZIndex = rectCloudControl.ZIndex; |
|
50 |
this.StartPoint = new System.Windows.Point(item.StartPoint.X, item.StartPoint.Y); |
|
51 |
this.EndPoint = new System.Windows.Point(item.EndPoint.X, item.EndPoint.Y); |
|
52 |
this.LeftBottomPoint = new System.Windows.Point(item.LeftBottomPoint.X, item.LeftBottomPoint.Y); |
|
53 |
this.TopRightPoint = new System.Windows.Point(item.TopRightPoint.X, item.TopRightPoint.Y); |
|
54 |
this.Paint = item.Paint; |
|
55 |
this.Opacity = item.Opacity; |
|
56 |
this.DashSize = item.DashSize; |
|
57 |
this.PointSet = item.PointSet.ConvertAll(x => new System.Windows.Point(x.X, x.Y)); |
|
58 |
this.StrokeColor = item.StrokeColor; |
|
59 |
this.ArcLength = item.ArcLength; |
|
60 |
this.LineSize = item.LineSize; |
|
61 |
this.UserID = item.UserID; |
|
62 |
this.Memo = item.Memo; |
|
63 |
this.ZIndex = item.ZIndex; |
|
64 |
this.GroupID = item.GroupID; |
|
64 | 65 |
} |
65 | 66 |
} |
66 | 67 |
|
... | ... | |
687 | 688 |
ctrl.Memo = this.Memo; |
688 | 689 |
|
689 | 690 |
ctrl.ZIndex = this.ZIndex; |
691 |
ctrl.GroupID = this.GroupID; |
|
690 | 692 |
|
691 | 693 |
return "|DZ|" + JsonSerializerHelper.CompressString((ctrl.JsonSerialize())); |
692 | 694 |
} |
... | ... | |
717 | 719 |
LineSize = Convert.ToDouble(data2.First()), |
718 | 720 |
UserID = s.UserID, |
719 | 721 |
Memo = s.Memo, |
720 |
ZIndex = s.ZIndex |
|
722 |
ZIndex = s.ZIndex, |
|
723 |
GroupID = s.GroupID |
|
721 | 724 |
}; |
722 | 725 |
} |
723 | 726 |
} |
내보내기 Unified diff