コード例 #1
0
ファイル: BookmarkManager.cs プロジェクト: ieccus/ExpDelivery
 protected virtual void OnRemoved(BookmarkEventArgs e)
 {
     if (Removed != null)
     {
         Removed(this, e);
     }
 }
コード例 #2
0
ファイル: BookmarkManager.cs プロジェクト: ieccus/ExpDelivery
 protected virtual void OnAdded(BookmarkEventArgs e)
 {
     if (Added != null)
     {
         Added(this, e);
     }
 }
コード例 #3
0
		void BookmarkRemoved(object sender, BookmarkEventArgs e)
		{
			Bookmarks.SDBookmark b = e.Bookmark as Bookmarks.SDBookmark;
			if (b != null) {
				Bookmarks.BookmarkManager.RemoveMark(b);
			}
		}
コード例 #4
0
 /// <summary>
 /// Have to add the bookmark to the BookmarkManager otherwise the bookmark is
 /// not remembered when re-opening the file and does not show in the
 /// bookmark manager.
 /// </summary>
 void BookmarkAdded(object sender, ICSharpCode.TextEditor.Document.BookmarkEventArgs e)
 {
     ICSharpCode.SharpDevelop.Bookmarks.SDBookmark b = e.Bookmark as ICSharpCode.SharpDevelop.Bookmarks.SDBookmark;
     if (b != null)
     {
         ICSharpCode.SharpDevelop.Bookmarks.BookmarkManager.AddMark(b);
     }
 }
コード例 #5
0
        void OnBookmarkRemoved(object sender, ICSharpCode.TextEditor.Document.BookmarkEventArgs e)
        {
            this.textEditor.Document.CustomLineManager.RemoveCustomLine(e.Bookmark.LineNumber);

            this.textEditor.Document.RequestUpdate(
                new ICSharpCode.TextEditor.TextAreaUpdate(
                    ICSharpCode.TextEditor.TextAreaUpdateType.SingleLine,
                    e.Bookmark.LineNumber
                    )
                );

            this.textEditor.Document.CommitUpdate();
        }
コード例 #6
0
 void OnBookmarkAdded(object sender, ICSharpCode.TextEditor.Document.BookmarkEventArgs e)
 {
 }
コード例 #7
0
 protected virtual void OnAdded(BookmarkEventArgs e)
 {
     Added?.Invoke(this, e);
 }
コード例 #8
0
 protected virtual void OnRemoved(BookmarkEventArgs e)
 {
     Removed?.Invoke(this, e);
 }
コード例 #9
0
 protected virtual void OnRemoved(BookmarkEventArgs e)
 {
     if (Removed != null) {
         Removed(this, e);
     }
 }
コード例 #10
0
 protected virtual void OnAdded(BookmarkEventArgs e)
 {
     if (Added != null) {
         Added(this, e);
     }
 }
コード例 #11
0
ファイル: MainForm.cs プロジェクト: zobo/xdebugclient
 private void BreakpointRemoved(object sender, BookmarkEventArgs e)
 {
     if (e.Bookmark is Breakpoint)
     {
         Breakpoint b = e.Bookmark as Breakpoint;
         WriteDebugLine(String.Format("Breakpoint removed: {0}:{1}", b.filename, b.LineNumber));
         _breakpointMgr.Record(b, BreakpointState.Removed);
     }
 }