개정판 7b34fb3a
drawing control copy, clone 추가
Change-Id: I453efca38394beb691b91c3ad0ab288725668d77
MarkupToPDF/Controls/Shape/RectCloudControl.cs | ||
---|---|---|
16 | 16 |
using MarkupToPDF.Serialize.S_Control; |
17 | 17 |
using System.Linq; |
18 | 18 |
using System.ServiceModel.Activation; |
19 |
using System.Windows.Markup; |
|
19 | 20 |
|
20 | 21 |
namespace MarkupToPDF.Controls.Shape |
21 | 22 |
{ |
... | ... | |
42 | 43 |
//Application.Current.Resources.MergedDictionaries.Add(dictionary); |
43 | 44 |
} |
44 | 45 |
|
46 |
public override void Copy(CommentUserInfo lhs) |
|
47 |
{ |
|
48 |
if (lhs is RectCloudControl rectCloudControl) |
|
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 |
} |
|
64 |
} |
|
65 |
|
|
66 |
public override CommentUserInfo Clone() |
|
67 |
{ |
|
68 |
var clone = new RectCloudControl(); |
|
69 |
clone.Copy(this); |
|
70 |
return clone; |
|
71 |
} |
|
72 |
|
|
45 | 73 |
#region Dependency Properties |
46 | 74 |
|
47 | 75 |
public static readonly DependencyProperty mousemodeProperty = |
내보내기 Unified diff