Battle_Script_Pro.Form1.NewPressedFind C# (CSharp) Method

NewPressedFind() private method

private NewPressedFind ( bool &search, int start, int &newStart ) : void
search bool
start int
newStart int
return void
        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;
        }
Form1