개정판 7b34fb3a
drawing control copy, clone 추가
Change-Id: I453efca38394beb691b91c3ad0ab288725668d77
MarkupToPDF/Controls/Etc/ImgControl.cs | ||
---|---|---|
16 | 16 |
using MarkupToPDF.Serialize.Core; |
17 | 17 |
using MarkupToPDF.Serialize.S_Control; |
18 | 18 |
using System.Windows.Media.Imaging; |
19 |
using MarkupToPDF.Controls.Shape; |
|
20 |
using System.Security.Policy; |
|
19 | 21 |
|
20 | 22 |
namespace MarkupToPDF.Controls.Etc |
21 | 23 |
{ |
... | ... | |
41 | 43 |
{ |
42 | 44 |
//this.DefaultStyleKey = typeof(ImgControl); |
43 | 45 |
} |
46 |
public override void Copy(CommentUserInfo lhs) |
|
47 |
{ |
|
48 |
if(lhs is ImgControl imgControl) |
|
49 |
{ |
|
50 |
this.CommentAngle = imgControl.CommentAngle; |
|
51 |
this.StartPoint = new Point(imgControl.StartPoint.X, imgControl.StartPoint.Y); |
|
52 |
this.TopRightPoint = new Point(imgControl.TopRightPoint.X, imgControl.TopRightPoint.Y); |
|
53 |
this.EndPoint = new Point(imgControl.EndPoint.X, imgControl.EndPoint.Y); |
|
54 |
this.LeftBottomPoint = new Point(imgControl.LeftBottomPoint.X, imgControl.LeftBottomPoint.Y); |
|
55 |
this.PointSet = imgControl.PointSet.ConvertAll(x => new Point(x.X, x.Y)); |
|
56 |
this.Opacity = imgControl.Opacity; |
|
57 |
this.FilePath = imgControl.FilePath; |
|
58 |
this.UserID = imgControl.UserID; |
|
59 |
this.ImageData = imgControl.ImageData; |
|
60 |
this.Memo = imgControl.Memo; |
|
61 |
} |
|
62 |
} |
|
63 |
|
|
64 |
public override CommentUserInfo Clone() |
|
65 |
{ |
|
66 |
var clone = new ImgControl(); |
|
67 |
clone.Copy(this); |
|
68 |
return clone; |
|
69 |
} |
|
44 | 70 |
|
45 | 71 |
public void Dispose() |
46 | 72 |
{ |
내보내기 Unified diff