Пример #1
0
 private string GetDisplayName(BookmarkTag bookmarkTag)
 {
     if (bookmarkTag.Type == BookmarkType.Local)
     {
         return($"Bookmark {bookmarkTag.Number}");
     }
     else
     {
         return($"Global bookmark {bookmarkTag.Number}");
     }
 }
Пример #2
0
        private Uri GetImageUri(BookmarkTag bookmarkTag)
        {
            var prefix = bookmarkTag.Type == BookmarkType.Global ? "Global" : string.Empty;

            return(new Uri($"pack://application:,,,/DPackRx;component/Features/Bookmarks/Images/{prefix}Bookmark{bookmarkTag.Number}.png"));
        }