Exemplo n.º 1
0
        private void menuFindNext_Click(object sender, EventArgs e)
        {
            // if Find & Replace dialog is open, we'll use RegexHelpers.FindNext to find the next occurrence with the given options
            if (_findReplace == null || !_findReplace.Created)
            {
                return;
            }

            var currentTxtEditor = GetCurrentNocTextEditor();

            if (currentTxtEditor != null)
            {
                RegexHelpers.FindNext(_findReplace.txtFindWhat.Text, _findReplace.chbCaseSensitive.Checked, currentTxtEditor, _findReplace.chbRxp.Checked);
            }
        }
Exemplo n.º 2
0
 private void btnFindNext_Click(object sender, EventArgs e)
 {
     // use Tools.FindNext to search for text with the given options
     RegexHelpers.FindNext(txtFindWhat.Text, chbCaseSensitive.Checked, _currentTextBox, chbRxp.Checked);
 }