개정판 34ac8db7
Fix: Delete에 대한 Undo/Redo 기능 수정
Change-Id: I55592f4822b661ed7f61c714382bd8d988145ef7
KCOM/Events/RedoCommand.cs | ||
---|---|---|
59 | 59 |
foreach (var item in redo.MarkupDataColl) |
60 | 60 |
{ |
61 | 61 |
ViewerDataModel.Instance.MarkupControls_USER.Add(item.Markup); |
62 |
|
|
62 | 63 |
ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.MarkupListUpdate( |
63 | 64 |
MarkupParser.MarkupToString(item.Markup, App.ViewInfo.UserID), EventType.Create, null, null); |
64 | 65 |
} |
... | ... | |
69 | 70 |
foreach (var item in redo.MarkupDataColl) |
70 | 71 |
{ |
71 | 72 |
ViewerDataModel.Instance.MarkupControls_USER.Remove(item.Markup); |
73 |
|
|
72 | 74 |
ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.MarkupListUpdate( |
73 | 75 |
null, EventType.Delete, item.Markup.CommentID, null); |
74 | 76 |
} |
... | ... | |
94 | 96 |
SelectionSet.Instance.UnSelect(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu); |
95 | 97 |
} |
96 | 98 |
break; |
97 |
/* |
|
98 |
case (EventType.Select): |
|
99 |
{ |
|
100 |
List<CommentUserInfo> comment = new List<CommentUserInfo>(); |
|
101 |
|
|
102 |
foreach (var item in redo.MarkupDataColl) |
|
103 |
{ |
|
104 |
ViewerDataModel.Instance.MarkupControls_USER.Remove(item.Markup); |
|
105 |
|
|
106 |
if ((item.Markup as IPath) != null) |
|
107 |
{ |
|
108 |
(item.Markup as IPath).LineSize = item.LineSize; |
|
109 |
} |
|
110 |
if ((item.Markup as UIElement) != null) |
|
111 |
{ |
|
112 |
(item.Markup as UIElement).Opacity = item.Opacity; |
|
113 |
} |
|
114 |
if ((item.Markup as IDashControl) != null) |
|
115 |
{ |
|
116 |
(item.Markup as IDashControl).DashSize = item.DashSize; |
|
117 |
} |
|
118 |
if ((item.Markup as IShapeControl) != null) |
|
119 |
{ |
|
120 |
(item.Markup as IShapeControl).Paint = item.paint; |
|
121 |
} |
|
122 |
|
|
123 |
comment.Add(item.Markup); |
|
124 |
} |
|
125 |
final = new AdornerFinal(comment); |
|
126 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.SelectLayer.Children.Add(final); |
|
127 |
} |
|
128 |
break; |
|
129 |
*/ |
|
130 | 99 |
} |
131 | 100 |
|
132 | 101 |
ViewerDataModel.Instance.UndoDataList.Where(data => data.EventTime == redo.EventTime).ToList() |
내보내기 Unified diff