개정판 34ac8db7
Fix: Delete에 대한 Undo/Redo 기능 수정
Change-Id: I55592f4822b661ed7f61c714382bd8d988145ef7
KCOM/Common/SelectionSet.cs | ||
---|---|---|
125 | 125 |
{ |
126 | 126 |
try |
127 | 127 |
{ |
128 |
//Logger.sendCheckLog("pageNavigator_PageChanging_ReleaseAdorner", 1); |
|
129 | 128 |
if (mainMenu.SelectLayer.Children.Count > 0) |
130 | 129 |
{ |
131 | 130 |
foreach (var item in mainMenu.SelectLayer.Children) |
... | ... | |
149 | 148 |
var control = InnerItem.DrawingData as CommentUserInfo; |
150 | 149 |
ViewerDataModel.Instance.MarkupControls_USER.Add(control); |
151 | 150 |
|
151 |
#region Unselect하는데 Create 커맨드를 추가해야 하는지 이해되지 않음 |
|
152 |
/* |
|
152 | 153 |
var vUndoBeforeTargetItem = |
153 | 154 |
ViewerDataModel.Instance.UndoDataList.ToList().OrderBy(x => x.EventTime).LastOrDefault(); |
154 | 155 |
|
... | ... | |
158 | 159 |
} |
159 | 160 |
else |
160 | 161 |
{ |
161 |
MarkupToPDF.Common.UndoDataGroup UndoData = new UndoDataGroup() |
|
162 |
MarkupToPDF.Common.UndoDataGroup UndoDataGroup = new UndoDataGroup()
|
|
162 | 163 |
{ |
163 | 164 |
IsUndo = false, |
164 | 165 |
Event = EventType.Create, |
... | ... | |
166 | 167 |
MarkupDataColl = new List<UndoData>() |
167 | 168 |
}; |
168 | 169 |
|
169 |
var multi_UndoData = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.Control_Style(control);
|
|
170 |
UndoData.MarkupDataColl.Add(multi_UndoData);
|
|
171 |
ViewerDataModel.Instance.UndoDataList.Add(UndoData); |
|
170 |
var _UndoData = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.Control_Style(control); |
|
171 |
UndoDataGroup.MarkupDataColl.Add(_UndoData);
|
|
172 |
ViewerDataModel.Instance.UndoDataList.Add(UndoDataGroup);
|
|
172 | 173 |
} |
173 | 174 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.UpdateMyMarkupList(); |
175 |
*/ |
|
176 |
#endregion |
|
174 | 177 |
} |
175 | 178 |
} |
176 | 179 |
} |
내보내기 Unified diff