Exemplo n.º 1
0
 /// <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;
     }
 }
Exemplo n.º 2
0
 /// <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;
         }
     }
 }