개정판 34ac8db7
Fix: Delete에 대한 Undo/Redo 기능 수정
Change-Id: I55592f4822b661ed7f61c714382bd8d988145ef7
KCOM/Events/Implementation/TopMenuEvent.cs | ||
---|---|---|
101 | 101 |
if (adornerMembers.Count() > 0) |
102 | 102 |
{ |
103 | 103 |
//UndoCommand.Instance.Push(adornerMembers.Select(x => x.DrawingData).Cast<CommentUserInfo>().ToList(), adnoerFinal.AngleValue); |
104 |
UndoCommand.Instance.Push(adornerMembers.Select(x => x.DrawingData).Cast<CommentUserInfo>().ToList()); |
|
104 |
UndoCommand.Instance.Push(EventType.Operation, adornerMembers.Select(x => x.DrawingData).Cast<CommentUserInfo>().ToList());
|
|
105 | 105 |
} |
106 | 106 |
} |
107 | 107 |
|
... | ... | |
1024 | 1024 |
.Where(x => x is RectCloudControl || x is CloudControl || |
1025 | 1025 |
x is MarkupToPDF.Controls.Text.TextControl || x is MarkupToPDF.Controls.Text.ArrowTextControl) |
1026 | 1026 |
.ToList(); |
1027 |
UndoCommand.Instance.Push(comments); |
|
1027 |
UndoCommand.Instance.Push(EventType.Operation, comments);
|
|
1028 | 1028 |
|
1029 | 1029 |
foreach (AdornerMember InnerItem in AdonerList) |
1030 | 1030 |
{ |
... | ... | |
2548 | 2548 |
#endregion |
2549 | 2549 |
#region Delete |
2550 | 2550 |
case "Delete": |
2551 |
DeleteCommand.Instance.Execute(SelectionSet.Instance.SelectedItems);
|
|
2551 |
UndoCommand.Instance.Push(EventType.Delete, SelectionSet.Instance.SelectedItems);
|
|
2552 | 2552 |
this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children.Clear(); |
2553 | 2553 |
|
2554 | 2554 |
instanceToggle.IsChecked = false; |
내보내기 Unified diff