public void ExecReplace() { string selt = CurrentSyntaxEditor.SelectedText; if (selt != string.Empty) { ReplaceForm.tbTextToFind.Text = selt; } ReplaceForm.Show(); }
public override void Execute(TextBoxControl editor) { if (_dlgReplace == null) { _dlgReplace = new ReplaceForm(editor); } if (!_dlgReplace.Visible) { _dlgReplace.Show(); } //TextLocation homeLocation = editor.GetLineHomeInfo(editor.Caret.Line); //if (homeLocation != TextLocation.Empty) //{ // editor.Caret.Position = homeLocation; // editor.Caret.UpdateCaretPosition(); // if (editor.HorizontalScroll.Value != 0 && editor.HorizontalScroll.Visible) // { // editor.HorizontalScroll.Value = 0; // editor.PerformLayout(); // } //} }