Пример #1
0
 static void OnRemoved(BookmarkEventArgs e)
 {
     if (Removed != null)
     {
         Removed(null, e);
     }
 }
Пример #2
0
 static void OnAdded(BookmarkEventArgs e)
 {
     if (Added != null)
     {
         Added(null, e);
     }
 }
Пример #3
0
        static void BookmarkRemoved(object sender, BM.BookmarkEventArgs e)
        {
            BreakpointBookmark bb = e.Bookmark as BreakpointBookmark;

            if (bb != null)
            {
                bb.RemoveMarker();
                OnBreakPointRemoved(new BreakpointBookmarkEventArgs(bb));
            }
        }
Пример #4
0
        static void BookmarkAdded(object sender, BM.BookmarkEventArgs e)
        {
            BreakpointBookmark bb = e.Bookmark as BreakpointBookmark;

            if (bb != null)
            {
                bb.LineNumberChanged += BookmarkChanged;
                OnBreakPointAdded(new BreakpointBookmarkEventArgs(bb));
            }
        }
Пример #5
0
 void BookmarkManagerRemoved(object sender, BookmarkEventArgs e)
 {
     if (ShowBookmarkInThisPad(e.Bookmark))
     {
         var model = listView.Remove(e.Bookmark);
         if (model != null)
         {
             model.PropertyChanged -= OnModelPropertyChanged;
         }
     }
 }
Пример #6
0
 void BookmarkManagerRemoved(object sender, BookmarkEventArgs e)
 {
     if (fileNodes.ContainsKey(e.Bookmark.FileName))
     {
         fileNodes[e.Bookmark.FileName].RemoveMark(e.Bookmark);
         if (fileNodes[e.Bookmark.FileName].Marks.Count == 0)
         {
             bookmarkTreeView.Nodes.Remove(fileNodes[e.Bookmark.FileName]);
             fileNodes.Remove(e.Bookmark.FileName);
         }
     }
 }
Пример #7
0
		void BookmarkManager_Removed(object sender, BookmarkEventArgs e)
		{
			var mark = e.Bookmark;
			if (mark != null && codeView.IconBarManager.Bookmarks.Contains(mark)) {
				codeView.IconBarManager.Bookmarks.Remove(mark);
				mark.Document = null;
			}
		}
Пример #8
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.DocumentAdapter;
			}
		}
Пример #9
0
 void BookmarkManagerAdded(object sender, BookmarkEventArgs e)
 {
     AddMark((SDBookmark)e.Bookmark);
 }
Пример #10
0
		void BookmarkManagerRemoved(object sender, BookmarkEventArgs e)
		{
			if (ShowBookmarkInThisPad(e.Bookmark))
				listView.Remove(new ListViewPadItemModel(e.Bookmark));
		}
Пример #11
0
		void BookmarkManager_Removed(object sender, BookmarkEventArgs e)
		{
			codeEditor.IconBarManager.Bookmarks.Remove(e.Bookmark);
			if (e.Bookmark.Document == codeEditor.DocumentAdapter) {
				e.Bookmark.Document = null;
			}
		}
Пример #12
0
 void BookmarkManagerRemoved(object sender, BookmarkEventArgs e)
 {
     listView.Remove(new ListViewPadItemModel(e.Bookmark));
 }
Пример #13
0
		void BookmarkManager_Removed(object sender, BookmarkEventArgs e)
		{
			iconBarManager.Bookmarks.Remove(e.Bookmark);
			if (e.Bookmark.Document == adapter.Document) {
				e.Bookmark.Document = null;
			}
		}
Пример #14
0
		static void OnRemoved(BookmarkEventArgs e)
		{
			if (Removed != null) {
				Removed(null, e);
			}
		}
Пример #15
0
		static void OnAdded(BookmarkEventArgs e)
		{
			if (Added != null) {
				Added(null, e);
			}
		}
Пример #16
0
		void BookmarkManager_Added(object sender, BookmarkEventArgs e)
		{
			var mark = e.Bookmark;
			if (mark != null && mark is BreakpointBookmark && mark.FileName == codeView.DecompiledFullTypeName) {
				codeView.IconBarManager.Bookmarks.Add(mark);
				mark.Document = codeView.Adapter.Document;
			}
		}
		void OnBookmarkRemoved(object sender, BookmarkEventArgs e)
		{
			// if the bookmark was removed from pressing the button, return
			if (this.PinCloseControl.IsChecked)
				return;
			
			if (e.Bookmark is PinBookmark) {
				var pin = (PinBookmark)e.Bookmark;
				if (pin.Location == Mark.Location && pin.FileName == Mark.FileName) {
					Close();
				}
			}
		}
Пример #18
0
		void BookmarkManagerRemoved(object sender, BookmarkEventArgs e)
		{
			if (fileNodes.ContainsKey(e.Bookmark.FileName)) {
				fileNodes[e.Bookmark.FileName].RemoveMark(e.Bookmark);
				if (fileNodes[e.Bookmark.FileName].Marks.Count == 0) {
					bookmarkTreeView.Nodes.Remove(fileNodes[e.Bookmark.FileName]);
					fileNodes.Remove(e.Bookmark.FileName);
				}
			}
		}
Пример #19
0
		void BookmarkManagerAdded(object sender, BookmarkEventArgs e)
		{
			AddMark((SDBookmark)e.Bookmark);
		}
Пример #20
0
		static void BookmarkAdded(object sender, BookmarkEventArgs e)
		{
			BreakpointBookmark bb = e.Bookmark as BreakpointBookmark;
			if (bb != null) {
				bb.LineNumberChanged += BookmarkChanged;
				OnBreakPointAdded(new BreakpointBookmarkEventArgs(bb));
			}
		}
Пример #21
0
		static void BookmarkRemoved(object sender, BookmarkEventArgs e)
		{
			BreakpointBookmark bb = e.Bookmark as BreakpointBookmark;
			if (bb != null) {
				bb.RemoveMarker();
				OnBreakPointRemoved(new BreakpointBookmarkEventArgs(bb));
			}
		}
Пример #22
0
		void BookmarkManagerRemoved(object sender, BookmarkEventArgs e)
		{
			if (ShowBookmarkInThisPad(e.Bookmark)) {
				var model = listView.Remove(e.Bookmark);
				if (model != null)
					model.PropertyChanged -= OnModelPropertyChanged;
			}
		}
Пример #23
0
		void BookmarkManager_Added(object sender, BookmarkEventArgs e)
		{
			var mark = e.Bookmark;
			if (mark != null && mark is BreakpointBookmark && mark.FileName == this.codeView.TextEditor.FileName) {
				codeView.IconBarManager.Bookmarks.Add(mark);
				mark.Document = this.codeView.TextEditor.Document;
			}
		}
Пример #24
0
		void BookmarkManagerRemoved(object sender, BookmarkEventArgs e)
		{
			listView.Remove(new ListViewPadItemModel(e.Bookmark));
		}