コード例 #1
0
 void OnAdded(BookmarkEventArgs e)
 {
     if (BookmarkAdded != null)
     {
         BookmarkAdded(null, e);
     }
 }
コード例 #2
0
 void BookmarkManagerAdded(object sender, BookmarkEventArgs e)
 {
     if (ShowBookmarkInThisPad(e.Bookmark))
     {
         this.Items.Add(e.Bookmark);
     }
 }
コード例 #3
0
 void OnRemoved(BookmarkEventArgs e)
 {
     if (BookmarkRemoved != null)
     {
         BookmarkRemoved(null, e);
     }
 }
コード例 #4
0
 void BookmarkManagerRemoved(object sender, BookmarkEventArgs e)
 {
     this.Items.Remove(e.Bookmark);
 }
コード例 #5
0
		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;
			}
		}
コード例 #6
0
		void BookmarkManager_Removed(object sender, BookmarkEventArgs e)
		{
			codeEditor.IconBarManager.Bookmarks.Remove(e.Bookmark);
			if (e.Bookmark.Document == codeEditor.Document) {
				e.Bookmark.Document = null;
			}
		}
コード例 #7
0
 void BookmarkManagerRemoved(object sender, BookmarkEventArgs e)
 {
     this.Items.Remove(e.Bookmark);
 }
コード例 #8
0
 void BookmarkManagerAdded(object sender, BookmarkEventArgs e)
 {
     if (ShowBookmarkInThisPad(e.Bookmark)) {
         this.Items.Add(e.Bookmark);
     }
 }
コード例 #9
0
		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;
			}
		}
コード例 #10
0
		/*
		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;
			}
		}
コード例 #11
0
 void OnRemoved(BookmarkEventArgs e)
 {
     if (BookmarkRemoved != null) {
         BookmarkRemoved(null, e);
     }
 }
コード例 #12
0
 void OnAdded(BookmarkEventArgs e)
 {
     if (BookmarkAdded != null) {
         BookmarkAdded(null, e);
     }
 }