개정판 873011c4
Fix: Undo/Redo 수정 진행
Change-Id: I3392d0ebc877626804a7c5d139d0b31a1942df7d
MarkupToPDF/Controls/Shape/CircleControl.cs | ||
---|---|---|
27 | 27 |
//Application.Current.Resources.MergedDictionaries.Add(dictionary); |
28 | 28 |
} |
29 | 29 |
|
30 |
public override void Copy(CommentUserInfo lhs) |
|
31 |
{ |
|
32 |
if (lhs is CircleControl CircleCtrl) |
|
33 |
{ |
|
34 |
this.LineSize = CircleCtrl.LineSize; |
|
35 |
this.Paint = CircleCtrl.Paint; |
|
36 |
this.StartPoint = new Point(CircleCtrl.StartPoint.X, CircleCtrl.StartPoint.Y); |
|
37 |
this.EndPoint = new Point(CircleCtrl.EndPoint.X, CircleCtrl.EndPoint.Y); |
|
38 |
this.LeftBottomPoint = new Point(CircleCtrl.LeftBottomPoint.X, CircleCtrl.LeftBottomPoint.Y); |
|
39 |
this.TopRightPoint = new Point(CircleCtrl.TopRightPoint.X, CircleCtrl.TopRightPoint.Y); |
|
40 |
this.Opacity = CircleCtrl.Opacity; |
|
41 |
this.CommentAngle = CircleCtrl.CommentAngle; |
|
42 |
this.DashSize = CircleCtrl.DashSize; |
|
43 |
this.PointSet = CircleCtrl.PointSet.ConvertAll(x => new Point(x.X, x.Y)); |
|
44 |
this.StrokeColor = CircleCtrl.StrokeColor; |
|
45 |
this.UserID = CircleCtrl.UserID; |
|
46 |
this.Memo = CircleCtrl.Memo; |
|
47 |
} |
|
48 |
} |
|
49 |
|
|
50 |
public override CommentUserInfo Clone() |
|
51 |
{ |
|
52 |
var clone = new CircleControl(); |
|
53 |
clone.Copy(this); |
|
54 |
return clone; |
|
55 |
} |
|
56 |
|
|
30 | 57 |
#region Dependency Properties |
31 | 58 |
|
32 | 59 |
public static readonly DependencyProperty IsSelectedProperty = |
내보내기 Unified diff