개정판 873011c4
Fix: Undo/Redo 수정 진행
Change-Id: I3392d0ebc877626804a7c5d139d0b31a1942df7d
KCOM/Events/DeleteCommand.cs | ||
---|---|---|
56 | 56 |
/// <param name="comments"></param> |
57 | 57 |
public void Execute(ICollection<CommentUserInfo> comments) |
58 | 58 |
{ |
59 |
MarkupToPDF.Common.Undo_data UndoData = new Undo_data()
|
|
59 |
MarkupToPDF.Common.UndoDataGroup UndoData = new UndoDataGroup()
|
|
60 | 60 |
{ |
61 | 61 |
IsUndo = false, |
62 |
Event = Event_Type.Delete,
|
|
62 |
Event = EventType.Delete, |
|
63 | 63 |
EventTime = DateTime.Now, |
64 |
Markup_List = new List<Multi_Undo_data>()
|
|
64 |
MarkupDataColl = new List<Multi_UndoData>()
|
|
65 | 65 |
}; |
66 | 66 |
|
67 | 67 |
foreach (var comment in comments) |
68 | 68 |
{ |
69 |
Multi_Undo_data multi_Undo_Data = new Multi_Undo_data()
|
|
69 |
Multi_UndoData multi_UndoData = new Multi_UndoData()
|
|
70 | 70 |
{ |
71 | 71 |
Markup = comment |
72 | 72 |
}; |
73 |
UndoData.Markup_List.Add(multi_Undo_Data);
|
|
73 |
UndoData.MarkupDataColl.Add(multi_UndoData);
|
|
74 | 74 |
|
75 | 75 |
ViewerDataModel.Instance.MarkupControls_USER.Remove(comment); |
76 | 76 |
ViewerDataModel.Instance.MarkupControls.Remove(comment); |
... | ... | |
79 | 79 |
ViewerDataModel.Instance.MyMarkupList.Remove(Item_); |
80 | 80 |
|
81 | 81 |
ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.MarkupListUpdate( |
82 |
null, Event_Type.Delete, MarkupParser.MarkupToString(multi_Undo_Data.Markup, App.ViewInfo.UserID).CommentID, null);
|
|
82 |
null, EventType.Delete, MarkupParser.MarkupToString(multi_UndoData.Markup, App.ViewInfo.UserID).CommentID, null);
|
|
83 | 83 |
} |
84 | 84 |
|
85 | 85 |
ViewerDataModel.Instance.UndoDataList.Where(data => data.IsUndo == true).ToList().ForEach(i => |
내보내기 Unified diff