Exemple #1
0
 public UncommentLinesCommand(ActiproEditor editor, IViewService viewService)
     : base(editor)
 {
     this.viewService = viewService;
 }
Exemple #2
0
 private bool ClampToLength(ref int offset)
 {
     return(ActiproEditor.Clamp(ref offset, Math.Max(0, this.editor.Document.Length - 1)));
 }
Exemple #3
0
 private bool ClampToLineCount(ref int line)
 {
     return(ActiproEditor.Clamp(ref line, Math.Max(0, this.editor.Document.Lines.Count - 1)));
 }
 public GoToLineCommand(ActiproEditor editor)
     : base(editor)
 {
 }
Exemple #5
0
 public UndoCommand(ActiproEditor editor)
     : base(editor)
 {
 }
Exemple #6
0
 protected ActiproCommand(ActiproEditor actiproEditor)
 {
     this.editor = actiproEditor.Editor;
 }