Beispiel #1
0
 private void BreakpointsChanged(NotifyingBaseList <DebugLocator> sender, bool isAdded, DebugLocator item, int index)
 {
     if (!_settingBreakpoint)
     {
         // Assumption: AIsAdded should always be in sync with the toggle
         InternalToggleBreakpoint(item);
     }
 }
Beispiel #2
0
 private void Debugger_BreakpointsChanged(NotifyingBaseList <DebugLocator> sender, bool isAdded, DebugLocator item, int index)
 {
     if (Service.LocatorNameMatches(item.Locator))
     {
         if (isAdded)
         {
             AddBreakpointBookmark(item);
         }
         else
         {
             var oldBookmark = (BreakpointBookmark)_textEdit.Document.BookmarkManager.GetFirstMark((Bookmark APredicate) => { return((APredicate is BreakpointBookmark) && ((BreakpointBookmark)APredicate).Locator == item); });
             if (oldBookmark != null)
             {
                 RemoveBookmark(oldBookmark);
             }
         }
     }
 }
Beispiel #3
0
 private void InitializeBreakpoints()
 {
     _breakpoints          = new NotifyingBaseList <DebugLocator>();
     _breakpoints.Changed += new NotifyingListChangeEventHandler <DebugLocator>(BreakpointsChanged);
 }
Beispiel #4
0
 private void OperandsChanged(NotifyingBaseList <Operand> sender, bool isAdded, Operand item, int index)
 {
     OperandsChanged();
 }