프로젝트

일반

사용자정보

개정판 7b34fb3a

ID7b34fb3adb7cc9f42eb8f74ea9182ea7e8b5a7a0
상위 86143026
하위 147d78f3

임예철이(가) 9달 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)