Code Cleanup

This commit is contained in:
ema
2024-12-12 11:12:20 +08:00
parent b4ac9332fe
commit 9f3014c20c
7 changed files with 45 additions and 76 deletions

View File

@@ -67,7 +67,7 @@ public partial class PdfViewerControl : UserControl, INotifyPropertyChanged, IDi
listThumbnails.SelectedIndex = value;
listThumbnails.ScrollIntoView(listThumbnails.SelectedItem);
CurrentPageChanged?.Invoke(this, new EventArgs());
CurrentPageChanged?.Invoke(this, EventArgs.Empty);
OnPropertyChanged();
}
}
@@ -202,7 +202,7 @@ public partial class PdfViewerControl : UserControl, INotifyPropertyChanged, IDi
if (CurrentPage == -1)
return;
CurrentPageChanged?.Invoke(this, new EventArgs());
CurrentPageChanged?.Invoke(this, EventArgs.Empty);
ReRenderCurrentPage();