/// <summary> /// Execute the Goto Line action /// </summary> /// <param name="textArea">The text area in which to perform the /// action</param> public override void Execute(TextArea textArea) { using(GotoLineDlg dlg = new GotoLineDlg()) { if(dlg.ShowDialog() == DialogResult.OK) textArea.Caret.Line = dlg.LineNumber - 1; } }
/// <summary> /// Execute the Goto Line action /// </summary> /// <param name="textArea">The text area in which to perform the /// action</param> public override void Execute(TextArea textArea) { using (GotoLineDlg dlg = new GotoLineDlg()) { if (dlg.ShowDialog() == DialogResult.OK) { textArea.Caret.Line = dlg.LineNumber - 1; } } }