void replaceForm_ReplaceClick(object sender, ReplaceEventArgs e) { TextBoxHelper.Replace(GetActiveTextBox, e.template, e.newTemplate, e.matchCase); if (string.IsNullOrEmpty(GetActiveTextBox.SelectedText)) { form_FindClick(sender, new FindEventArgs(e.template, e.matchCase, true)); } }
void replaceForm_ReplaceAllClick(object sender, ReplaceEventArgs e) { TextBoxHelper.ReplaceAll(GetActiveTextBox, e.template, e.newTemplate, e.matchCase); }