프로젝트

일반

사용자정보

개정판 fd452a01

IDfd452a0147d5e3680a33bfb401f315733b8747ad
상위 3b797b23
하위 a2c29ea2

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

Undo 수정

Change-Id: Ic43e4c2eb2d06d8e27e8154f09ffe4728ce3c96c

차이점 보기:

KCOM/Common/SelectionSet.cs
148 148

  
149 149
                                    var control = InnerItem.DrawingData as CommentUserInfo;
150 150
                                    ViewerDataModel.Instance.MarkupControls_USER.Add(control);
151
                                   
152
                                    MarkupToPDF.Common.Undo_data UndoData = new Undo_data()
151

  
152
                                    var vUndoBeforeTargetItem = 
153
                                        ViewerDataModel.Instance.UndoDataList.ToList().FindAll(x => x.Markup_List.FindAll
154
                                        (y => (y.Markup == control && y.Angle != y.BeforeAngle) || y.Markup == control && y.PointSet != y.BeforePointSet).Count > 0)
155
                                        .OrderByDescending(order => order.EventTime).FirstOrDefault();
156

  
157
                                    if (vUndoBeforeTargetItem != null)
153 158
                                    {
154
                                        IsUndo = false,
155
                                        Event = Event_Type.Create,
156
                                        EventTime = DateTime.Now,
157
                                        Markup_List = new List<Multi_Undo_data>()
158
                                    };
159

  
160
                                    var multi_Undo_Data = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.Control_Style(control);
161
                                    UndoData.Markup_List.Add(multi_Undo_Data);
162
                                    ViewerDataModel.Instance.UndoDataList.Add(UndoData);
159

  
160
                                    }
161
                                    else
162
                                    {
163
                                        MarkupToPDF.Common.Undo_data UndoData = new Undo_data()
164
                                        {
165
                                            IsUndo = false,
166
                                            Event = Event_Type.Create,
167
                                            EventTime = DateTime.Now,
168
                                            Markup_List = new List<Multi_Undo_data>()
169
                                        };
170

  
171
                                        var multi_Undo_Data = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.Control_Style(control);
172
                                        UndoData.Markup_List.Add(multi_Undo_Data);
173
                                        ViewerDataModel.Instance.UndoDataList.Add(UndoData);
174
                                    }
163 175
                                    Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.UpdateMyMarkupList();
164 176
                                }
165 177
                            }

내보내기 Unified diff

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