Skip to content

Commit df431ff

Browse files
Adding changes
1 parent 6c09235 commit df431ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MAUI/PDF-Viewer/Custom-Bookmark.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private void Bookmarks_CollectionChanged(object? sender, NotifyCollectionChanged
9494
{
9595
foreach (Bookmark bookmark in e.NewItems)
9696
{
97-
Debug.WriteLine($"Added bookmark: {newBookmark.Name} at page {newBookmark.PageNumber}");
97+
Debug.WriteLine($"Added bookmark: {bookmark.Name} at page {bookmark.PageNumber}");
9898
}
9999
}
100100
}
@@ -220,12 +220,12 @@ In the [CollectionChanged](https://learn.microsoft.com/en-us/dotnet/api/system.c
220220
// Event handler for changes in the bookmarks collection
221221
private void Bookmarks_CollectionChanged(object? sender, NotifyCollectionChangedEventArgs e)
222222
{
223-
// Handle Removal of new bookmarks
223+
// Handle removal of new bookmarks
224224
else if (e.Action == NotifyCollectionChangedAction.Remove && e.OldItems != null)
225225
{
226226
foreach (Bookmark bookmark in e.OldItems)
227227
{
228-
Debug.WriteLine($"Removed bookmark: {oldBookmark.Name} at page {oldBookmark.PageNumber}");
228+
Debug.WriteLine($"Removed bookmark: {bookmark.Name} at page {bookmark.PageNumber}");
229229
}
230230
}
231231
}

0 commit comments

Comments
 (0)