Esempio n. 1
0
 public void AddBookmark(Bookmark bookmark)
 {
     _downloadsQueue.Enqueue(bookmark);
 }
Esempio n. 2
0
 private static BookmarkViewModel GetBookmarkViewModel(Bookmark bookmark)
 {
     if (bookmark.Folder == "starred")
         return App.ViewModel.StarredBookmarks.Where(b => b.BookmarkId == bookmark.BookmarkId).FirstOrDefault();
     else if (bookmark.Folder == "archive")
         return App.ViewModel.ArchivedBookmarks.Where(b => b.BookmarkId == bookmark.BookmarkId).FirstOrDefault();
     else
         return App.ViewModel.Bookmarks.Where(b => b.BookmarkId == bookmark.BookmarkId).FirstOrDefault();
 }