개정판 cb5c7f06
issue #999: fixed codes for save logic
Change-Id: I4d34d82a4b670a1bcb408047cd539f077c2a18f1
KCOM/Views/MainMenu.xaml.cs | ||
---|---|---|
545 | 545 |
var pageinfo = this.CurrentDoc.docInfo.DOCPAGE.Where(p => p.PAGE_NUMBER == e.CurrentPage.PAGE_NUMBER).FirstOrDefault(); |
546 | 546 |
drawingPannelRotate(pageinfo.PAGE_ANGLE); |
547 | 547 |
|
548 |
//} |
|
549 | 548 |
SetCommentPages(true); |
550 | 549 |
} |
550 |
|
|
551 |
/// <summary> |
|
552 |
/// start page changing |
|
553 |
/// - save controls if page is modified |
|
554 |
/// - starting download page image |
|
555 |
/// </summary> |
|
556 |
/// <param name="sender"></param> |
|
557 |
/// <param name="e"></param> |
|
551 | 558 |
private void pageNavigator_PageChanging(object sender, Controls.Sample.PageChangeEventArgs e) |
552 | 559 |
{ |
553 |
|
|
554 |
if (ViewerDataModel.Instance.UndoDataList.Count > 0) |
|
555 |
{ |
|
556 |
this.ParentOfType<MainWindow>().dzTopMenu._SaveEvent(null, null); |
|
557 |
} |
|
558 |
|
|
559 |
ViewerDataModel.Instance.UndoDataList.Clear(); |
|
560 |
|
|
561 |
ConvertInkControlToPolygon(); |
|
562 |
|
|
563 |
SelectionSet.Instance.UnSelect(this); |
|
564 |
UpdateMyMarkupList(); |
|
560 |
this.ParentOfType<MainWindow>().dzTopMenu._SaveEvent(null, null); |
|
565 | 561 |
|
566 | 562 |
CompareMode.IsChecked = false; |
567 | 563 |
var BalancePoint = ViewerDataModel.Instance.PageBalanceMode == true ? e.PageNumber + ViewerDataModel.Instance.PageBalanceNumber : e.PageNumber; |
568 | 564 |
|
569 |
|
|
570 | 565 |
#region 페이지가 벗어난 경우 |
571 | 566 |
|
572 | 567 |
if (BalancePoint < 1) |
내보내기 Unified diff