예제 #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));
		}