Exemplo n.º 1
0
 void OnAdded(BookmarkEventArgs e)
 {
     if (BookmarkAdded != null)
     {
         BookmarkAdded(null, e);
     }
 }
Exemplo n.º 2
0
 void BookmarkManagerAdded(object sender, BookmarkEventArgs e)
 {
     if (ShowBookmarkInThisPad(e.Bookmark))
     {
         this.Items.Add(e.Bookmark);
     }
 }
Exemplo n.º 3
0
 void OnRemoved(BookmarkEventArgs e)
 {
     if (BookmarkRemoved != null)
     {
         BookmarkRemoved(null, e);
     }
 }
Exemplo n.º 4
0
 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;
			}
		}
Exemplo n.º 7
0
 void BookmarkManagerRemoved(object sender, BookmarkEventArgs e)
 {
     this.Items.Remove(e.Bookmark);
 }
Exemplo n.º 8
0
 void BookmarkManagerAdded(object sender, BookmarkEventArgs e)
 {
     if (ShowBookmarkInThisPad(e.Bookmark)) {
         this.Items.Add(e.Bookmark);
     }
 }
Exemplo n.º 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;
			}
		}
Exemplo n.º 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;
			}
		}
Exemplo n.º 11
0
 void OnRemoved(BookmarkEventArgs e)
 {
     if (BookmarkRemoved != null) {
         BookmarkRemoved(null, e);
     }
 }
Exemplo n.º 12
0
 void OnAdded(BookmarkEventArgs e)
 {
     if (BookmarkAdded != null) {
         BookmarkAdded(null, e);
     }
 }