개정판 02a9f323
Fix: UndoDataGroup 생성자 추가
Change-Id: If11a260fd4a847b735c721d7d2777447fd218dd8
KCOM/Events/UndoCommand.cs | ||
---|---|---|
49 | 49 |
/// <param name="comments"></param> |
50 | 50 |
public void Push(EventType _EventType, ICollection<CommentUserInfo> comments) |
51 | 51 |
{ |
52 |
UndoDataGroup UndoData = new UndoDataGroup() |
|
52 |
UndoDataGroup UndoDataGrp = new UndoDataGroup()
|
|
53 | 53 |
{ |
54 | 54 |
IsUndo = false, |
55 |
Event = _EventType, |
|
56 |
EventTime = DateTime.Now, |
|
57 |
MarkupDataColl = new List<UndoData>(), |
|
55 |
Event = _EventType |
|
58 | 56 |
}; |
59 | 57 |
|
60 | 58 |
foreach (var comment in comments) |
... | ... | |
64 | 62 |
Markup = comment |
65 | 63 |
}; |
66 | 64 |
_UndoData.Clone = comment.Clone(); |
67 |
UndoData.MarkupDataColl.Add(_UndoData); |
|
65 |
UndoDataGrp.MarkupDataColl.Add(_UndoData);
|
|
68 | 66 |
|
69 | 67 |
if (_EventType == EventType.Delete) |
70 | 68 |
{ |
... | ... | |
88 | 86 |
{ |
89 | 87 |
ViewerDataModel.Instance.UndoDataList.Remove(i); |
90 | 88 |
}); |
91 |
ViewerDataModel.Instance.UndoDataList.Add(UndoData); |
|
89 |
ViewerDataModel.Instance.UndoDataList.Add(UndoDataGrp);
|
|
92 | 90 |
} |
93 | 91 |
|
94 | 92 |
/// <summary> |
내보내기 Unified diff