|
@@ -106,9 +106,9 @@ namespace PDF_Office.ViewModels.Tools
|
|
contextMenu.DataContext = viewContentViewModel;
|
|
contextMenu.DataContext = viewContentViewModel;
|
|
if (contextMenu.Items.Count > 0)
|
|
if (contextMenu.Items.Count > 0)
|
|
{
|
|
{
|
|
- int index = PDFViewer.CurrentIndex;
|
|
|
|
-
|
|
|
|
- //检测是否已存在相同数据
|
|
|
|
|
|
+ int index = PDFViewer.CurrentIndex;
|
|
|
|
+
|
|
|
|
+ //检测是否已存在相同数据
|
|
CPDFBookmark list = PDFViewer.Document.GetBookmarkList().FirstOrDefault(q => q.PageIndex == index);
|
|
CPDFBookmark list = PDFViewer.Document.GetBookmarkList().FirstOrDefault(q => q.PageIndex == index);
|
|
if (list != null)
|
|
if (list != null)
|
|
{
|
|
{
|
|
@@ -229,6 +229,7 @@ namespace PDF_Office.ViewModels.Tools
|
|
if (OpenFileInfo != null)
|
|
if (OpenFileInfo != null)
|
|
{
|
|
{
|
|
menuItem1.IsChecked = OpenFileInfo.ShowHighLightLink;
|
|
menuItem1.IsChecked = OpenFileInfo.ShowHighLightLink;
|
|
|
|
+ HighlightLinks_Click(menuItem1, null);
|
|
}
|
|
}
|
|
menuItem1.Click -= HighlightLinks_Click;
|
|
menuItem1.Click -= HighlightLinks_Click;
|
|
menuItem1.Click += HighlightLinks_Click;
|
|
menuItem1.Click += HighlightLinks_Click;
|