Exemple #1
0
 //public void AddBreakpoints (LineSegment ls){
 //TextMarker bm = new BreakpointTextMarker(editor, false);
 //editor.Document.AddMarker(ls, bm);
 //editor.QueueDraw();
 //}
 public void AddBreakpoints(object obj, EventArgs args)
 {
     LineSegment line = editor.Document.GetLine(editor.Caret.Line);
     if (line != null) {
         TextMarker bm = new BreakpointTextMarker(editor, false);
         editor.Document.AddMarker(line, bm);
         editor.QueueDraw();
     }
 }
Exemple #2
0
 private void AddBreakpoints(LineSegment line)
 {
     if (line != null) {
         TextMarker bm = new BreakpointTextMarker(editor, false);
         editor.Document.AddMarker(line, bm);
         editor.QueueDraw();
     }
 }