개정판 fd452a01
Undo 수정
Change-Id: Ic43e4c2eb2d06d8e27e8154f09ffe4728ce3c96c
KCOM/Common/SelectionSet.cs | ||
---|---|---|
148 | 148 |
|
149 | 149 |
var control = InnerItem.DrawingData as CommentUserInfo; |
150 | 150 |
ViewerDataModel.Instance.MarkupControls_USER.Add(control); |
151 |
|
|
152 |
MarkupToPDF.Common.Undo_data UndoData = new Undo_data() |
|
151 |
|
|
152 |
var vUndoBeforeTargetItem = |
|
153 |
ViewerDataModel.Instance.UndoDataList.ToList().FindAll(x => x.Markup_List.FindAll |
|
154 |
(y => (y.Markup == control && y.Angle != y.BeforeAngle) || y.Markup == control && y.PointSet != y.BeforePointSet).Count > 0) |
|
155 |
.OrderByDescending(order => order.EventTime).FirstOrDefault(); |
|
156 |
|
|
157 |
if (vUndoBeforeTargetItem != null) |
|
153 | 158 |
{ |
154 |
IsUndo = false, |
|
155 |
Event = Event_Type.Create, |
|
156 |
EventTime = DateTime.Now, |
|
157 |
Markup_List = new List<Multi_Undo_data>() |
|
158 |
}; |
|
159 |
|
|
160 |
var multi_Undo_Data = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.Control_Style(control); |
|
161 |
UndoData.Markup_List.Add(multi_Undo_Data); |
|
162 |
ViewerDataModel.Instance.UndoDataList.Add(UndoData); |
|
159 |
|
|
160 |
} |
|
161 |
else |
|
162 |
{ |
|
163 |
MarkupToPDF.Common.Undo_data UndoData = new Undo_data() |
|
164 |
{ |
|
165 |
IsUndo = false, |
|
166 |
Event = Event_Type.Create, |
|
167 |
EventTime = DateTime.Now, |
|
168 |
Markup_List = new List<Multi_Undo_data>() |
|
169 |
}; |
|
170 |
|
|
171 |
var multi_Undo_Data = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.Control_Style(control); |
|
172 |
UndoData.Markup_List.Add(multi_Undo_Data); |
|
173 |
ViewerDataModel.Instance.UndoDataList.Add(UndoData); |
|
174 |
} |
|
163 | 175 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.UpdateMyMarkupList(); |
164 | 176 |
} |
165 | 177 |
} |
내보내기 Unified diff