개정판 7b34fb3a
drawing control copy, clone 추가
Change-Id: I453efca38394beb691b91c3ad0ab288725668d77
MarkupToPDF/Controls/Etc/SymControlN.cs | ||
---|---|---|
37 | 37 |
// System.Diagnostics.Debug.WriteLine("resource Count :" + Application.Current.Resources.MergedDictionaries.Count); |
38 | 38 |
} |
39 | 39 |
|
40 |
public override void Copy(CommentUserInfo lhs) |
|
41 |
{ |
|
42 |
if (lhs is SymControlN symControlN) |
|
43 |
{ |
|
44 |
this.PointSet = symControlN.PointSet.ConvertAll(x => new Point(x.X, x.Y)); |
|
45 |
this.StartPoint = new Point(symControlN.StartPoint.X, symControlN.StartPoint.Y); |
|
46 |
this.EndPoint = new Point(symControlN.EndPoint.X, symControlN.EndPoint.Y); |
|
47 |
this.CommentAngle = symControlN.CommentAngle; |
|
48 |
this.LeftBottomPoint = new Point(symControlN.LeftBottomPoint.X, symControlN.LeftBottomPoint.Y); |
|
49 |
this.TopRightPoint = new Point(symControlN.TopRightPoint.X, symControlN.TopRightPoint.Y); |
|
50 |
this.Opacity = symControlN.Opacity; |
|
51 |
this.PathXathData = symControlN.PathXathData; |
|
52 |
this.Memo = symControlN.Memo; |
|
53 |
} |
|
54 |
} |
|
55 |
|
|
56 |
public override CommentUserInfo Clone() |
|
57 |
{ |
|
58 |
var clone = new SymControlN(); |
|
59 |
clone.Copy(this); |
|
60 |
return clone; |
|
61 |
} |
|
62 |
|
|
40 | 63 |
public event PropertyChangedEventHandler PropertyChanged; |
41 | 64 |
protected void RaisePropertyChanged(string propName) |
42 | 65 |
{ |
내보내기 Unified diff