개정판 6707a5c7
issue #680 temp file save add
KCOM/Events/Implementation/TopMenuEvent.cs | ||
---|---|---|
103 | 103 |
multi_Undo_Data.Markup = InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo; |
104 | 104 |
UndoData.Markup_List.Add(multi_Undo_Data); |
105 | 105 |
multi_Undo_Data = new Multi_Undo_data(); |
106 |
|
|
107 |
temp.DELADDTemp(InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo, this.ParentOfType<MainWindow>().dzMainMenu.pageNavigator.CurrentPage.PageNumber); |
|
108 | 106 |
} |
109 | 107 |
|
110 | 108 |
ViewerDataModel.Instance.UndoDataList.Where(data => data.IsUndo == true).ToList().ForEach(i => |
... | ... | |
412 | 410 |
// this.ParentOfType<MainWindow>().DialogMessage_Alert("Please Select Your Comment List Item", "Alert"); |
413 | 411 |
// return; |
414 | 412 |
//} |
415 |
//강인구 변경
|
|
413 |
// 변경 |
|
416 | 414 |
else |
417 | 415 |
{ |
418 | 416 |
foreach (var item in menu.gridViewMarkup.SelectedItems) |
... | ... | |
464 | 462 |
|
465 | 463 |
Save save = new Save(); |
466 | 464 |
|
467 |
//강인구 추가
|
|
465 |
//추가 |
|
468 | 466 |
List<IKCOM.MarkupInfoItem> MySelectItem = new List<IKCOM.MarkupInfoItem>(); |
469 | 467 |
|
470 | 468 |
foreach(var item in menu.gridViewMarkup.SelectedItems) |
... | ... | |
734 | 732 |
multi_Undo_Data.Markup = InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo; |
735 | 733 |
UndoData.Markup_List.Add(multi_Undo_Data); |
736 | 734 |
multi_Undo_Data = new Multi_Undo_data(); |
737 |
|
|
738 |
//임시파일에 해당 commentid가 있으면 삭제후 다시 생성 |
|
739 |
temp.DELADDTemp(InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo, this.ParentOfType<MainWindow>().dzMainMenu.pageNavigator.CurrentPage.PageNumber); |
|
740 | 735 |
} |
741 | 736 |
|
742 | 737 |
ViewerDataModel.Instance.UndoDataList.Where(data => data.IsUndo == true).ToList().ForEach(i => |
... | ... | |
2156 | 2151 |
} |
2157 | 2152 |
//클립보드에 넣음 |
2158 | 2153 |
Clipboard.SetText(MarkupData); |
2159 |
//임시 파일에서 삭제 |
|
2160 |
temp.DataDel(markupReturn.CommentID); |
|
2161 | 2154 |
} |
2162 | 2155 |
} |
2163 | 2156 |
this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children.Clear(); |
... | ... | |
2211 | 2204 |
multi_Undo_Data = this.ParentOfType<MainWindow>().dzMainMenu.Control_Style(item as MarkupToPDF.Common.CommentUserInfo); |
2212 | 2205 |
|
2213 | 2206 |
UndoData.Markup_List.Add(multi_Undo_Data); |
2214 |
ViewerDataModel.Instance.UndoDataList.Add(UndoData); |
|
2215 |
|
|
2216 |
//임시파일에저장 |
|
2217 |
temp.AddTemp(item as MarkupToPDF.Common.CommentUserInfo, this.ParentOfType<MainWindow>().dzMainMenu.pageNavigator.CurrentPage.PageNumber); |
|
2207 |
ViewerDataModel.Instance.UndoDataList.Add(UndoData); |
|
2218 | 2208 |
} |
2219 | 2209 |
} |
2220 | 2210 |
Controls.AdornerFinal final = new Controls.AdornerFinal(adornerSet); |
... | ... | |
2234 | 2224 |
{ |
2235 | 2225 |
final.MoveAdorner(new System.Windows.Controls.Primitives.DragDeltaEventArgs(0.001, 0.001)); //dummy |
2236 | 2226 |
} |
2227 |
|
|
2237 | 2228 |
} |
2238 | 2229 |
|
2239 | 2230 |
|
... | ... | |
2343 | 2334 |
double realPointY = this.ParentOfType<MainWindow>().dzMainMenu.getCurrentPoint.Y - final.BorderSize.Y - (final.BorderSize.Height / 2); |
2344 | 2335 |
final.MoveAdorner(new System.Windows.Controls.Primitives.DragDeltaEventArgs(realPointX, realPointY)); |
2345 | 2336 |
|
2346 |
//임시파일에저장 |
|
2347 |
temp.AddTemp(currentControl, this.ParentOfType<MainWindow>().dzMainMenu.pageNavigator.CurrentPage.PageNumber); |
|
2348 | 2337 |
} |
2349 | 2338 |
} |
2350 | 2339 |
|
... | ... | |
2383 | 2372 |
var Item_ = ViewerDataModel.Instance.MarkupList_USER.Where(d => d.ID == (InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo).CommentID).FirstOrDefault(); |
2384 | 2373 |
|
2385 | 2374 |
ViewerDataModel.Instance.MarkupList_USER.Remove(Item_); |
2386 |
} |
|
2387 | 2375 |
|
2388 |
//임시 파일에서 삭제 |
|
2389 |
temp.DataDel((InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo).CommentID); |
|
2376 |
//임시파일에서도 삭제한다. |
|
2377 |
temp.DelTemp((InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo).CommentID, this.ParentOfType<MainWindow>().dzMainMenu.pageNavigator.CurrentPage.PageNumber.ToString()); |
|
2378 |
|
|
2379 |
} |
|
2390 | 2380 |
} |
2391 | 2381 |
} |
2392 | 2382 |
|
내보내기 Unified diff