프로젝트

일반

사용자정보

개정판 8118ba81

ID8118ba81351339c1a83543c2f0e80ce909364b97
상위 e1b36bc0
하위 d1f35ad3

임예철이(가) 5달 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)