Beispiel #1
0
 public void LoadBookmarks()
 {
     SortBy.Clear();
     foreach (var n in Archives.Namespaces)
     {
         SortBy.Add(n);
     }
     SortByIndex = SortBy.IndexOf(Settings.SortByDefault);
     OrderBy     = Settings.OrderByDefault;
     if (Settings.OpenBookmarksStart && Archives.Archives.Count > 0)
     {
         foreach (var b in Settings.Profile.Bookmarks)
         {
             var archive = Archives.GetArchive(b.archiveID);
             if (archive != null)
             {
                 Archives.OpenTab(archive, false);
             }
             else
             {
                 WeakReferenceMessenger.Default.Send(new ShowNotification("Bookmarked Archive with ID[" + b.archiveID + "] not found.", ""));
             }
         }
     }
     Settings.Profile.MarkedAsNonDuplicated.RemoveAll(hit => !(Archives.HasArchive(hit.Left) && Archives.HasArchive(hit.Right)));
 }