개정판 02a9f323
Fix: UndoDataGroup 생성자 추가
Change-Id: If11a260fd4a847b735c721d7d2777447fd218dd8
KCOM/Events/CutCommand.cs | ||
---|---|---|
66 | 66 |
string id = string.Empty; |
67 | 67 |
if (item?.GetType().Name == "AdornerFinal") |
68 | 68 |
{ |
69 |
MarkupToPDF.Common.UndoDataGroup UndoData = new UndoDataGroup() |
|
69 |
MarkupToPDF.Common.UndoDataGroup UndoDataGrp = new UndoDataGroup()
|
|
70 | 70 |
{ |
71 | 71 |
IsUndo = false, |
72 |
Event = EventType.Delete, |
|
73 |
EventTime = DateTime.Now, |
|
74 |
MarkupDataColl = new List<UndoData>() |
|
72 |
Event = EventType.Delete |
|
75 | 73 |
}; |
76 | 74 | |
77 |
foreach (var InnerItem in (item as Controls.AdornerFinal).Members.Cast<Controls.AdornerMember>())
|
|
75 |
foreach (var InnerItem in (item as Controls.AdornerFinal).Members) |
|
78 | 76 |
{ |
79 | 77 |
var comment = (InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo); |
80 | 78 | |
... | ... | |
82 | 80 |
{ |
83 | 81 |
Markup = comment |
84 | 82 |
}; |
85 |
UndoData.MarkupDataColl.Add(multi_UndoData); |
|
83 |
UndoDataGrp.MarkupDataColl.Add(multi_UndoData);
|
|
86 | 84 | |
87 | 85 |
var data = MarkupParser.MarkupToString(comment, App.ViewInfo.UserID); |
88 | 86 | |
... | ... | |
99 | 97 |
ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.MarkupListUpdate( |
100 | 98 |
null, EventType.Delete, data.CommentID, null); |
101 | 99 |
} |
102 |
ViewerDataModel.Instance.UndoDataList.Add(UndoData); |
|
100 | ||
101 |
ViewerDataModel.Instance.UndoDataList.Add(UndoDataGrp); |
|
103 | 102 |
//Clipboard.SetText(MarkupData,TextDataFormat.Text); |
104 | 103 |
Dispatcher.CurrentDispatcher.Invoke(() => |
105 | 104 |
{ |
내보내기 Unified diff