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); } }
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); } } } }
private void InitializeBreakpoints() { _breakpoints = new NotifyingBaseList <DebugLocator>(); _breakpoints.Changed += new NotifyingListChangeEventHandler <DebugLocator>(BreakpointsChanged); }
private void OperandsChanged(NotifyingBaseList <Operand> sender, bool isAdded, Operand item, int index) { OperandsChanged(); }