프로젝트

일반

사용자정보

개정판 fd452a01

IDfd452a0147d5e3680a33bfb401f315733b8747ad
상위 3b797b23
하위 a2c29ea2

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

Undo 수정

Change-Id: Ic43e4c2eb2d06d8e27e8154f09ffe4728ce3c96c

차이점 보기:

KCOM/Events/UndoCommand.cs
47 47
        /// <author>humkyung</author>
48 48
        /// <date>2019.06.14</date>
49 49
        /// <param name="comments"></param>
50
        public void Push(ICollection<CommentUserInfo> comments, double dAngle)
50
        public void Push(ICollection<CommentUserInfo> comments, double dAngle, double dBeforeAngle = 0.0, List<Point> lstBeforePointSet = null)
51 51
        {
52 52
            Undo_data UndoData = new Undo_data()
53 53
            {
......
75 75
                    multi_Undo_Data.PointSet.Add(point);
76 76
                }
77 77

  
78
                if (lstBeforePointSet != null)
79
                    multi_Undo_Data.BeforePointSet = lstBeforePointSet;
80

  
78 81
                if (comment is ArrowTextControl)
79 82
                {
80
                    multi_Undo_Data.Angle = dAngle = (comment as ArrowTextControl).CommentAngle;
83
                    //multi_Undo_Data.Angle = dAngle = (comment as ArrowTextControl).CommentAngle;
84
                    multi_Undo_Data.Angle = dAngle;
85
                    multi_Undo_Data.BeforeAngle = dBeforeAngle;
81 86
                }
82 87
                else
83 88
                {
84 89
                    multi_Undo_Data.Angle = dAngle;
90
                    multi_Undo_Data.BeforeAngle = dBeforeAngle;
85 91
                }
86 92

  
87 93
                multi_Undo_Data.Markup = comment;
......
169 175
                            }
170 176
                            if ((item.Markup as TextControl) != null)
171 177
                            {
172
                                (item.Markup as TextControl).CommentAngle = item.Angle;
178
                                //(item.Markup as TextControl).CommentAngle = item.Angle;
179
                                (item.Markup as TextControl).CommentAngle = item.BeforeAngle;
173 180
                                Canvas.SetLeft((item.Markup as TextControl), item.PointSet[0].X);
174 181
                                Canvas.SetTop((item.Markup as TextControl), item.PointSet[0].Y);
175 182
                            }
176 183
                            else
177 184
                            {
178
                                (item.Markup as IPath).PointSet = item.PointSet;
185
                                (item.Markup).CommentAngle = item.BeforeAngle;
186
                                //(item.Markup as IPath).PointSet = item.PointSet;
187
                                (item.Markup as IPath).PointSet = item.BeforePointSet != null ? item.BeforePointSet : new List<Point>();
179 188
                                (item.Markup as CommentUserInfo).UpdateControl();
180 189
                            }
181 190

  

내보내기 Unified diff

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