|
@@ -683,7 +683,7 @@ namespace PDF_Master.ViewModels.BOTA
|
|
|
if (AnnotationListItems.Count > 0)
|
|
|
{
|
|
|
IsEmptyPanelVisibility = Visibility.Collapsed;
|
|
|
- await Task.Delay(5);
|
|
|
+ await Task.Delay(2);
|
|
|
////展开数据
|
|
|
//ExpandGroupHeader(AnnotationListItems, listBox);
|
|
|
|
|
@@ -1156,20 +1156,21 @@ namespace PDF_Master.ViewModels.BOTA
|
|
|
for (int k = 0; k < AnnotationListItems.Count; k++)
|
|
|
{
|
|
|
if (AnnotationListItems[k].PageIndex == pageIndex && AnnotationListItems[k].AnnotIndex == annotIndex)
|
|
|
- {
|
|
|
- //AnnotationListItems.RemoveAt(k);
|
|
|
- //AnnotationHandlerEventArgs annotation1 = CurrentAnnotationLists.FirstOrDefault(x => x.PageIndex == AnnotationListItems[k].PageIndex && x.AnnotIndex == AnnotationListItems[k].AnnotIndex);
|
|
|
- //CurrentAnnotationLists.Remove(annotation1);
|
|
|
- //UpdateAnnotListAfterDelete(pageIndex, annotIndex);
|
|
|
-
|
|
|
- //删除之后要拿到最新的数据源
|
|
|
+ {
|
|
|
+ //AnnotationListItems.RemoveAt(k);
|
|
|
+ //AnnotationHandlerEventArgs annotation1 = CurrentAnnotationLists.FirstOrDefault(x => x.PageIndex == AnnotationListItems[k].PageIndex && x.AnnotIndex == AnnotationListItems[k].AnnotIndex);
|
|
|
+ //CurrentAnnotationLists.Remove(annotation1);
|
|
|
+ //UpdateAnnotListAfterDelete(pageIndex, annotIndex);
|
|
|
+ //AnnotationHandlerEventArgs args = AnnotationListItems.FindFirst(a => a.PageIndex == pageIndex);
|
|
|
+ //listBox.ScrollIntoView(args);
|
|
|
+
|
|
|
+ //删除之后要拿到最新的数据源
|
|
|
CurrentAnnotationLists = GetDocumentAnnotionList(out HideAnnots);
|
|
|
AnnotationListItems = new ObservableCollection<AnnotationHandlerEventArgs>();
|
|
|
AnnotationListItems.AddRange(CurrentAnnotationLists);
|
|
|
AnnotationListItems.CollectionChanged += AnnotationListItems_CollectionChanged;
|
|
|
RefreshAnnotationListItems();
|
|
|
- //AnnotationHandlerEventArgs args = AnnotationListItems.FindFirst(a => a.PageIndex == pageIndex);
|
|
|
- //listBox.ScrollIntoView(args);
|
|
|
+
|
|
|
return;
|
|
|
}
|
|
|
}
|