Exemplo n.º 1
0
 public static bool IsLineBookmark(Bookmark bookmark)
 {
     return bookmark != null && (bookmark.BookmarkType == BookmarkType.Breakpoint || bookmark.BookmarkType == BookmarkType.CurrentDebugPoint);
 }
Exemplo n.º 2
0
        public void Remove(Bookmark bookmark)
        {
            bookmark.CleanUp();
            _bookmarks.Remove(bookmark);

            OnRedrawRequested?.Invoke(this, new EventArgs());
            OnBookmarkUpdated?.Invoke(this, new BookmarkEventArgs(bookmark, true));
        }
Exemplo n.º 3
0
 public BookmarkEventArgs(Bookmark bookmark, bool isDeleted)
 {
     Bookmark = bookmark;
     IsDeleted = isDeleted;
 }
Exemplo n.º 4
0
        public bool Add(Bookmark bookmark)
        {
            // Only support one bookmark per line
            if (_bookmarks.Contains(bookmark))
                return false;

            _bookmarks.Add(bookmark);

            OnRedrawRequested?.Invoke(this, new EventArgs());
            OnBookmarkUpdated?.Invoke(this, new BookmarkEventArgs(bookmark));

            return true;
        }
Exemplo n.º 5
0
 public BookmarkEventArgs(Bookmark bookmark)
 {
     Bookmark = bookmark;
 }