ARCed.Scintilla.FindReplaceDialog.FindNext C# (CSharp) Method

FindNext() public method

public FindNext ( ) : void
return void
        public void FindNext()
        {
            if (this.cboFindF.Text == string.Empty)
                return;

            this.AddFindMru();
            this.lblStatus.Text = string.Empty;

            Range foundRange = null;

            try
            {
                foundRange = this.FindNextF(false);
            }
            catch (ArgumentException ex)
            {
                this.lblStatus.Text = "Error in Regular Expression: " + ex.Message;
                return;
            }

            if (foundRange == null)
            {
                this.lblStatus.Text = "Match could not be found";
            }
            else
            {
                if (foundRange.Start < this.Scintilla.Caret.Anchor)
                {
                    if (this.chkSearchSelectionF.Checked)
                        this.lblStatus.Text = "Search match wrapped to the begining of the selection";
                    else
                        this.lblStatus.Text = "Search match wrapped to the begining of the document";
                }

                foundRange.Select();
                this.MoveFormAwayFromSelection();
            }
        }