private void NewPressedFind(out bool search, int start, out int newStart)
{
int startIndex = 0;
int endIndex = 0;
newStart = start;
if (openFARForm.txtSearch.Text.Length > 0)
{
startIndex = FindMyText(openFARForm.txtSearch.Text.Trim(), start, scripts[tabControl1.SelectedIndex].Text.Length);
if (startIndex == -1)
{
search = false;
return;
}
}
if (startIndex >= 0)
{
endIndex = openFARForm.txtSearch.Text.Length;
newStart = startIndex + endIndex;
}
search = true;
}