static void OnLineCountChanged (object ob, LineCountEventArgs a) { lock (breakpoints) { foreach (Breakpoint bp in breakpoints.GetBreakpoints ()) { if (bp.FileName == a.TextFile.Name) { if (bp.Line > a.LineNumber) { // If the line that has the breakpoint is deleted, delete the breakpoint, otherwise update the line #. if (bp.Line + a.LineCount >= a.LineNumber) breakpoints.UpdateBreakpointLine (bp, bp.Line + a.LineCount); else breakpoints.Remove (bp); } else if (bp.Line == a.LineNumber && a.LineCount < 0) breakpoints.Remove (bp); } } } }
static void LineCountChanged (object sender, LineCountEventArgs args) { // MonoDevelop.Projects.Text.ITextFile textFile = (MonoDevelop.Projects.Text.ITextFile) sender; }
private void OnLineCountChanged(object ob, LineCountEventArgs a) { bookmarks.FixLineNumbers(a); RaiseBookmarksChange(); }