/// <summary> /// Draws the bookmark on the <see cref="IconMargin"/>. /// </summary> /// <param name="g">The <see cref="Graphics"/> context.</param> /// <param name="rectangle">The bounding rectangle.</param> public virtual void Draw(Graphics g, Rectangle rectangle) { switch (_type) { case BookmarkType.kMark: BookmarkRenderer.DrawBookmark(g, rectangle, _enabled); break; case BookmarkType.kBreakpoint: BookmarkRenderer.DrawBreakpoint(g, rectangle, true, true); break; } }
/// <summary> /// Draws the bookmark on the <see cref="IconMargin"/>. /// </summary> /// <param name="g">The <see cref="Graphics"/> context.</param> /// <param name="rectangle">The bounding rectangle.</param> public virtual void Draw(Graphics g, Rectangle rectangle) { BookmarkRenderer.DrawBookmark(g, rectangle, _enabled); }