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

FindPrevious() public method

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

            this.AddFindMru();
            this.lblStatus.Text = string.Empty;
            Range foundRange = null;
            try
            {
                foundRange = this.FindNextF(true);
            }
            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.Position)
                {
                    if (this.chkSearchSelectionF.Checked)
                        this.lblStatus.Text = "Search match wrapped to the _end of the selection";
                    else
                        this.lblStatus.Text = "Search match wrapped to the _end of the document";
                }

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