Beispiel #1
0
        public void MoveBookmark(string sourcePath, string targetPath)
        {
            if (!Bookmarks.ContainsKey(sourcePath))
            {
                return;
            }

            CopyBookmark(sourcePath, targetPath);
            RemoveBookmark(sourcePath);
        }
Beispiel #2
0
 public override void FillBookmarks(IDictionary <string, string> data)
 {
     foreach (KeyValuePair <string, string> kv in data)
     {
         if (Bookmarks.ContainsKey(kv.Key))
         {
             Bookmarks[kv.Key].Parent.InsertAfter(new Run(new Text(kv.Value)), Bookmarks[kv.Key]);
         }
     }
 }
        public void AddBookmark(string id, int bookmarkStyleIndex)
        {
            if (Bookmarks.ContainsKey(id))
            {
                Bookmarks.Remove(id);
            }

            Bookmarks.Add(id, bookmarkStyleIndex);

            NotifyOfPropertyChange("BookmarksAvailable");
        }