소스 검색

注释列表-修复空状态

OYXH\oyxh 2 년 전
부모
커밋
80995e4ec6
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      PDF Office/ViewModels/BOTA/AnnotationContentViewModel.cs

+ 2 - 1
PDF Office/ViewModels/BOTA/AnnotationContentViewModel.cs

@@ -910,9 +910,10 @@ namespace PDF_Office.ViewModels.BOTA
                 ViewContentViewModel = viewContentViewModel;
                 PdfViewer = pdfview;
                 AnnotationListItems = new ObservableCollection<AnnotationHandlerEventArgs>();
-                AnnotationListItems.CollectionChanged += AnnotationListItems_CollectionChanged;
+
                 AnnotationListItems = GetDocumentAnnotionList();
                 currentAnnotationArgs.AddRange(AnnotationListItems);
+                AnnotationListItems.CollectionChanged += AnnotationListItems_CollectionChanged;
             }
         }