SearchTextBox.cs
/// <summary>
/// Prompts the user for a string to search for
/// </summary>
/// <returns>true if the search string was set</returns>
Prompts the user for a string to search for
Prompts the user for a string to search for
public bool SetSearchString()
        {
            bool ret = false;
            if (this.SelectionLength > 0)
            {
                SearchString = this.Text.Substring(this.SelectionStart, this.SelectionLength);
            }
            string result = StringInputDlg.GetString(
                                           "Enter Search String",
                                           "Please enter text (or a regex) to search for.",
                                           SearchString);
            if (!result.Equals(""))
            {
                SearchString = result;
                ret = true;
            }
            return ret;
        }
public bool SetSearchString ( ) { bool ret = false ; if ( this . SelectionLength > 0 ) { SearchString = this . Text . Substring ( this . SelectionStart , this . SelectionLength ) ; } string result = StringInputDlg . GetString ( " " , " " , SearchString ) ; if ( ! result . Equals ( " " ) ) { SearchString = result ; ret = true ; } return ret ; }
Prompts the user for a string to search for
Prompts the user for a string to search for
true if the search string was set
true if the search string was set