private void PressedReplace(object sender, EventArgs e)
{
bool search = true;
if (!scripts[tabControl1.SelectedIndex].SelectedText.Equals(openFARForm.txtSearch.Text))
{
PressedFindNew(out search);
}
if (search)
{
scripts[tabControl1.SelectedIndex].SelectedText = openFARForm.txtReplace.Text;
}
else
{
MessageBox.Show("The requested string could not be found.");
return;
}
scripts[tabControl1.SelectedIndex].Focus();
}