개정판 8118ba81
Dash Style 변경 시 Undo 추가
Group 관련 기능 시 Undo 추가
Change-Id: Idd9a674a676acaa0795511419bc949039f06b5fe
KCOM/Events/Event_KeyEvent.cs | ||
---|---|---|
1 | 1 |
using KCOM.Common; |
2 |
using KCOM.Controls; |
|
2 | 3 |
using KCOM.Events; |
3 | 4 |
using MarkupToPDF.Common; |
5 |
using MarkupToPDF.Controls.Cad; |
|
6 |
using MarkupToPDF.Controls.Line; |
|
4 | 7 |
using MarkupToPDF.Controls.Parsing; |
8 |
using MarkupToPDF.Controls.Polygon; |
|
9 |
using MarkupToPDF.Controls.Shape; |
|
5 | 10 |
using MarkupToPDF.Controls.Text; |
6 | 11 |
using System; |
7 | 12 |
using System.Collections.Generic; |
... | ... | |
221 | 226 |
#region Grouping 해제 |
222 | 227 |
if (ViewerDataModel.Instance.IsPressCtrl && ViewerDataModel.Instance.IsPressShift) |
223 | 228 |
{ |
229 |
if (ViewerDataModel.Instance.UndoDataList == null) |
|
230 |
{ |
|
231 |
return; |
|
232 |
} |
|
233 |
|
|
234 |
UndoCommand.Instance.Push(EventType.Operation, SelectionSet.Instance.SelectedItems); |
|
235 |
|
|
224 | 236 |
SelectionSet.Instance.SelectedItems.ForEach(x => x.GroupID = string.Empty); |
225 | 237 |
} |
226 | 238 |
#endregion |
227 | 239 |
#region Grouping |
228 | 240 |
else if (ViewerDataModel.Instance.IsPressCtrl) |
229 | 241 |
{ |
242 |
if (ViewerDataModel.Instance.UndoDataList == null) |
|
243 |
{ |
|
244 |
return; |
|
245 |
} |
|
246 |
|
|
247 |
UndoCommand.Instance.Push(EventType.Operation, SelectionSet.Instance.SelectedItems); |
|
248 |
|
|
230 | 249 |
string GroupID = Guid.NewGuid().ToString(); |
231 | 250 |
SelectionSet.Instance.SelectedItems.ForEach(x => x.GroupID = GroupID); |
232 | 251 |
} |
내보내기 Unified diff