void OnAdded(BookmarkEventArgs e) { if (BookmarkAdded != null) { BookmarkAdded(null, e); } }
void BookmarkManagerAdded(object sender, BookmarkEventArgs e) { if (ShowBookmarkInThisPad(e.Bookmark)) { this.Items.Add(e.Bookmark); } }
void OnRemoved(BookmarkEventArgs e) { if (BookmarkRemoved != null) { BookmarkRemoved(null, e); } }
void BookmarkManagerRemoved(object sender, BookmarkEventArgs e) { this.Items.Remove(e.Bookmark); }
void BookmarkManager_Added(object sender, BookmarkEventArgs e) { if (FileUtility.IsEqualFileName(this.PrimaryFileName, e.Bookmark.FileName)) { codeEditor.IconBarManager.Bookmarks.Add(e.Bookmark); e.Bookmark.Document = codeEditor.Document; } }
void BookmarkManager_Removed(object sender, BookmarkEventArgs e) { codeEditor.IconBarManager.Bookmarks.Remove(e.Bookmark); if (e.Bookmark.Document == codeEditor.Document) { e.Bookmark.Document = null; } }
void BookmarkManager_Added(object sender, BookmarkEventArgs e) { var mark = e.Bookmark; if (mark != null && mark.FileName == PrimaryFileName) { codeEditor.IconBarManager.Bookmarks.Add(mark); mark.Document = this.codeEditor.Document; } }
/* void UpdateIconMargin() { codeView.IconBarManager.UpdateClassMemberBookmarks( ParserService.ParseFile(tempFileName, new AvalonEditDocumentAdapter(codeView.Document, null)), null); // load bookmarks foreach (SDBookmark bookmark in BookmarkManager.GetBookmarks(this.codeView.TextEditor.FileName)) { bookmark.Document = this.codeView.TextEditor.Document; codeView.IconBarManager.Bookmarks.Add(bookmark); } } */ #endregion #region Bookmarks void BookmarkManager_Removed(object sender, BookmarkEventArgs e) { var mark = e.Bookmark; if (mark != null && codeEditor.IconBarManager.Bookmarks.Contains(mark)) { codeEditor.IconBarManager.Bookmarks.Remove(mark); mark.Document = null; } }