개정판 19d602e0
Fix: Undo/Redo 기능 개선
Change-Id: I788a6fe870ed5ee7096f3ee461227588cf758388
KCOM/Events/PasteCommand.cs | ||
---|---|---|
98 | 98 |
|
99 | 99 |
//CreateCommand.Instance.Execute(control); |
100 | 100 |
adornerSet.Add(control); |
101 |
var multi_UndoData = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.Control_Style(control);
|
|
102 |
UndoDataGrp.MarkupDataColl.Add(multi_UndoData);
|
|
101 |
var UndoData = new UndoData(control);
|
|
102 |
UndoDataGrp.MarkupDataColl.Add(UndoData); |
|
103 | 103 |
ViewerDataModel.Instance.UndoDataList.Add(UndoDataGrp); |
104 | 104 |
|
105 | 105 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.UpdateMyMarkupList(); |
106 | 106 |
//ViewerDataModel.Instance.MarkupControls_USER.Remove(control); |
107 | 107 |
|
108 | 108 |
ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.MarkupListUpdate( |
109 |
MarkupParser.MarkupToString(multi_UndoData.Markup, App.ViewInfo.UserID), EventType.Create, null, null);
|
|
109 |
MarkupParser.MarkupToString(UndoData.Markup, App.ViewInfo.UserID), EventType.Create, null, null); |
|
110 | 110 |
} |
111 | 111 |
} |
112 | 112 |
|
... | ... | |
202 | 202 |
currentControl.TopRightPoint, |
203 | 203 |
}; |
204 | 204 |
|
205 |
var multi_UndoData = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.Control_Style(currentControl as MarkupToPDF.Common.CommentUserInfo);
|
|
206 |
UndoDataGrp.MarkupDataColl.Add(multi_UndoData);
|
|
205 |
var UndoData = new UndoData(currentControl as MarkupToPDF.Common.CommentUserInfo);
|
|
206 |
UndoDataGrp.MarkupDataColl.Add(UndoData); |
|
207 | 207 |
ViewerDataModel.Instance.UndoDataList.Add(UndoDataGrp); |
208 | 208 |
|
209 | 209 |
ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl as MarkupToPDF.Common.CommentUserInfo); |
... | ... | |
217 | 217 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.SelectLayer.Children.Add(final); |
218 | 218 |
|
219 | 219 |
ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.MarkupListUpdate( |
220 |
MarkupParser.MarkupToString(multi_UndoData.Markup, App.ViewInfo.UserID), EventType.Create, null, null);
|
|
220 |
MarkupParser.MarkupToString(UndoData.Markup, App.ViewInfo.UserID), EventType.Create, null, null); |
|
221 | 221 |
} |
222 | 222 |
catch (Exception ex) |
223 | 223 |
{ |
내보내기 Unified diff