프로젝트

일반

사용자정보

개정판 7b34fb3a

ID7b34fb3adb7cc9f42eb8f74ea9182ea7e8b5a7a0
상위 86143026
하위 147d78f3

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

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

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