|
@@ -155,7 +155,9 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
private void AnnotationList_AnnotationSelectionChanged(object sender, object e)
|
|
|
{
|
|
|
var bindAnnotationResult = e as BindAnnotationResult;
|
|
|
- //pdfViewer.SelectAnnotation(bindAnnotationResult.PageIndex, bindAnnotationResult.AnnotIndex);
|
|
|
+ pdfViewer.PDFViewTool.GetCPDFViewer().GoToPage(bindAnnotationResult.PageIndex - 1, new Point(0, 0));
|
|
|
+ pdfViewer.PDFViewTool.GetCPDFViewer().UpDataRenderFrame();
|
|
|
+ pdfViewer.PDFViewTool.SelectedAnnotForIndex(bindAnnotationResult.PageIndex-1, bindAnnotationResult.AnnotIndex);
|
|
|
}
|
|
|
}
|
|
|
}
|