private void findNextToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EditorTabPage etb = GetActiveTab();

            if (etb != null)
            {
                int index = etb.Find(findDialog.Search, findDialog.Options);
                if (index >= 0)
                {
                    etb.ScrollToOffset(index);
                }
            }
        }
Beispiel #2
0
        private void findNextToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TabPage tb = tabControl1.SelectedTab;

            if (tb as EditorTabPage == null)
            {
                return;
            }
            EditorTabPage etb = tb as EditorTabPage;

            int index = etb.Find(findDialog.Search, findDialog.Options);

            if (index >= 0)
            {
                etb.ScrollToOffset(index);
            }
        }
Beispiel #3
0
        private void findToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TabPage tb = tabControl1.SelectedTab;

            if (tb as EditorTabPage == null)
            {
                return;
            }
            EditorTabPage etb = tb as EditorTabPage;

            findDialog.SetFocusOnSearchTextField();
            if (findDialog.ShowDialog() == DialogResult.OK)
            {
                int index = etb.Find(findDialog.Search, findDialog.Options);
                if (index >= 0)
                {
                    etb.ScrollToOffset(index);
                }
            }
        }