개정판 fd452a01
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