프로젝트

일반

사용자정보

개정판 37eadd3f

ID37eadd3f5becc71f9e9df5400123b1022a45ed85
상위 873011c4
하위 cb3444cd

백흠경이(가) 9달 전에 추가함

Fix: ArcControl, ArrowArcControl, ArrowControl_Multi, LineControl, TriControl에 대해서 Undo 작업 진행

Change-Id: I2bca1618da4fd9cf9a59cc6bb2db1f194264ab7f

차이점 보기:

MarkupToPDF/Controls/Line/ArrowControl_Multi.cs
18 18

  
19 19
namespace MarkupToPDF.Controls.Line
20 20
{
21
    public class ArrowControl_Multi : CommentUserInfo, IDisposable, INotifyPropertyChanged, IMarkupCommonData, IDashControl
21
    public class ArrowControl_Multi : CommentUserInfo, IDisposable, INotifyPropertyChanged, IDashControl
22 22
    {
23 23

  
24 24
        public event PropertyChangedEventHandler PropertyChanged;
......
39 39
        {
40 40
            //this.DefaultStyleKey = typeof(ArrowControl_Multi);
41 41
        }
42
      
42

  
43
        public override void Copy(CommentUserInfo lhs)
44
        {
45
            if (lhs is ArrowControl_Multi item)
46
            {
47
                this.LineSize = item.LineSize;
48
                this.StartPoint = new Point(item.StartPoint.X, item.StartPoint.Y);
49
                this.MiddlePoint = new Point(item.MiddlePoint.X, item.MiddlePoint.Y);
50
                this.DashSize = item.DashSize;
51
                this.EndPoint = new Point(item.EndPoint.X, item.EndPoint.Y);
52
                this.PointSet = item.PointSet.ConvertAll(x => new Point(x.X, x.Y));
53
                this.Opacity = item.Opacity;
54
                this.StrokeColor = item.StrokeColor;
55
                this.UserID = item.UserID;
56
                this.Memo = item.Memo;
57
            }
58
        }
59

  
60
        public override CommentUserInfo Clone()
61
        {
62
            var clone = new ArrowControl_Multi();
63
            clone.Copy(this);
64
            return clone;
65
        }
66

  
43 67
        #region Dependency Properties
44 68

  
45 69
        public static readonly DependencyProperty IsSelectedProperty =

내보내기 Unified diff

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