示例#1
0
        private void InsertBookmark(Bookmark bookmark, Database destination)
        {
            Bookmark newBookmark = bookmark.Clone();

            newBookmark.BookmarkId = ++_maxBookmarkId;

            newBookmark.LocationId            = _translatedLocationIds.GetTranslatedId(bookmark.LocationId);
            newBookmark.PublicationLocationId = _translatedLocationIds.GetTranslatedId(bookmark.PublicationLocationId);
            newBookmark.Slot = destination.GetNextBookmarkSlot(newBookmark.PublicationLocationId);

            destination.Bookmarks.Add(newBookmark);
        }