프로젝트

일반

사용자정보

개정판 37eadd3f

ID37eadd3f5becc71f9e9df5400123b1022a45ed85
상위 873011c4
하위 cb3444cd

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

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

Change-Id: I2bca1618da4fd9cf9a59cc6bb2db1f194264ab7f

차이점 보기:

MarkupToPDF/Controls/Line/ArrowArcControl.cs
19 19
namespace MarkupToPDF.Controls.Line
20 20
{
21 21

  
22
    public class ArrowArcControl : CommentUserInfo, IDisposable, INotifyPropertyChanged, IMarkupCommonData, IDashControl
22
    public class ArrowArcControl : CommentUserInfo, IDisposable, INotifyPropertyChanged, IDashControl
23 23
    {
24 24
        #region 초기선언
25 25
        public event PropertyChangedEventHandler PropertyChanged;
......
41 41
            //this.DefaultStyleKey = typeof(ArrowArcControl);
42 42
        }
43 43

  
44
        public override void Copy(CommentUserInfo lhs)
45
        {
46
            if (lhs is ArrowArcControl ArrowArcCtrl)
47
            {
48
                this.StartPoint = new Point(ArrowArcCtrl.StartPoint.X, ArrowArcCtrl.StartPoint.Y);
49
                this.EndPoint = new Point(ArrowArcCtrl.EndPoint.X, ArrowArcCtrl.EndPoint.Y);
50
                this.DashSize = ArrowArcCtrl.DashSize;
51
                this.PointSet = ArrowArcCtrl.PointSet.ConvertAll(x => new Point(x.X, x.Y));
52
                this.isTransOn = ArrowArcCtrl.isTransOn;
53
                this.MiddlePoint = new Point(ArrowArcCtrl.MiddlePoint.X, ArrowArcCtrl.MiddlePoint.Y);
54
                this.StrokeColor = ArrowArcCtrl.StrokeColor;
55
                this.Opacity = ArrowArcCtrl.Opacity;
56

  
57
                this.Clock = ArrowArcCtrl.Clock;
58
                this.LineSize = ArrowArcCtrl.LineSize;
59
                this.UserID = ArrowArcCtrl.UserID;
60
                this.Memo = ArrowArcCtrl.Memo;
61
            }
62
        }
63

  
64
        public override CommentUserInfo Clone()
65
        {
66
            var clone = new ArrowArcControl();
67
            clone.Copy(this);
68
            return clone;
69
        }
70

  
44 71
        public void Dispose()
45 72
        {
46 73
            //GC.Collect();

내보내기 Unified diff

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