Beispiel #1
0
        private void findAndReplaceRegExToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TabPage tb = tabControl1.SelectedTab;

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

            findReplaceDialog.SetFocusOnSearchTextField();
            findReplaceDialog.Text += " RegEx";
            if (findReplaceDialog.ShowDialog() == DialogResult.OK)
            {
                etb.FindAndReplaceRegEx(findReplaceDialog.Search, findReplaceDialog.Replacement, findReplaceDialog.Options);
            }
        }