개정판 0585d5cc
markus Api 오류 출력 되도록 수정
Change-Id: I7318ee5da1ec9b8dbfd4450a1ab7117b6b2713ea
KCOM/Views/MainMenu.xaml.cs | ||
---|---|---|
585 | 585 |
} |
586 | 586 |
} |
587 | 587 |
|
588 |
/// delete markup list |
|
589 |
int iPageNo = this.pageNavigator.CurrentPage.PageNumber; |
|
588 |
if(this.pageNavigator.CurrentPage != null) |
|
589 |
{ |
|
590 |
/// delete markup list |
|
591 |
int iPageNo = this.pageNavigator.CurrentPage.PageNumber; |
|
590 | 592 |
|
591 |
var deleted = (from markup in ViewerDataModel.Instance.MyMarkupList |
|
592 |
where (markup.PageNumber == iPageNo) |
|
593 |
&& (null == ViewerDataModel.Instance.MarkupControls_USER.Where(control => control.CommentID == markup.ID).FirstOrDefault()) |
|
594 |
select markup).ToList(); |
|
593 |
var deleted = (from markup in ViewerDataModel.Instance.MyMarkupList
|
|
594 |
where (markup.PageNumber == iPageNo)
|
|
595 |
&& (null == ViewerDataModel.Instance.MarkupControls_USER.Where(control => control.CommentID == markup.ID).FirstOrDefault())
|
|
596 |
select markup).ToList();
|
|
595 | 597 |
|
596 |
foreach (var markup in deleted) |
|
598 |
foreach (var markup in deleted) |
|
599 |
{ |
|
600 |
ViewerDataModel.Instance.MyMarkupList.Remove(markup); |
|
601 |
} |
|
602 |
} |
|
603 |
else |
|
597 | 604 |
{ |
598 |
ViewerDataModel.Instance.MyMarkupList.Remove(markup);
|
|
605 |
System.Diagnostics.Debug.WriteLine("UpdateMyMarkupList : this.pageNavigator.CurrentPage null ");
|
|
599 | 606 |
} |
607 |
|
|
600 | 608 |
/// up to here |
601 | 609 |
|
602 | 610 |
//if (modified) |
내보내기 Unified diff