|
@@ -309,19 +309,29 @@ namespace PDF_Master.ViewModels.BOTA
|
|
|
public void HiddenAnnot()
|
|
|
{
|
|
|
isHiddenAnnot = true;
|
|
|
+ colors.Clear();
|
|
|
+ authors.Clear();
|
|
|
+ annotArgsTypes.Clear();
|
|
|
AnnotationListItems.Clear();
|
|
|
+
|
|
|
CurrentAnnotationLists = GetDocumentAnnotionList(out HideAnnots);
|
|
|
AnnotationListItems.AddRange(CurrentAnnotationLists);
|
|
|
+ Screen = Visibility.Collapsed;
|
|
|
}
|
|
|
|
|
|
public void DisplayAnnot()
|
|
|
{
|
|
|
isHiddenAnnot = false;
|
|
|
- AnnotationListItems.Clear();
|
|
|
+ colors.Clear();
|
|
|
+ authors.Clear();
|
|
|
+ annotArgsTypes.Clear();
|
|
|
+ AnnotationListItems.Clear();
|
|
|
+
|
|
|
//AnnotationListItems = GetDocumentAnnotionList(out ObservableCollection<AnnotationHandlerEventArgs> HideAnnots);
|
|
|
CurrentAnnotationLists = GetDocumentAnnotionList(out HideAnnots);
|
|
|
AnnotationListItems.AddRange(CurrentAnnotationLists);
|
|
|
- RefreshAnnotationListItems();
|
|
|
+ RefreshAnnotationListItems();
|
|
|
+ Screen = Visibility.Collapsed;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -651,7 +661,7 @@ namespace PDF_Master.ViewModels.BOTA
|
|
|
if (AnnotationListItems.Count > 0)
|
|
|
{
|
|
|
IsEmptyPanelVisibility = Visibility.Collapsed;
|
|
|
- await Task.Delay(2);
|
|
|
+ await Task.Delay(5);
|
|
|
//展开数据
|
|
|
ExpandGroupHeader(AnnotationListItems, listBox);
|
|
|
}
|