/// <summary>
 /// Creates new instance.
 /// </summary>
 /// <param name="text">Searched text.</param>
 /// <param name="type">Search type.</param>
 /// <param name="isCaseSensitive">Whether is search case sensitive.</param>
 /// <returns>Instance of <see cref="TextSearch"/>.</returns>
 public static TextSearch Create(string text, TextSearchType type, bool isCaseSensitive)
 {
     return(new TextSearch
     {
         Text = text,
         Type = type,
         IsCaseSensitive = isCaseSensitive
     });
 }
Example #2
0
 public static TextSearch Create(string text, TextSearchType type = TextSearchType.Match, bool caseSensitive = true)
 {
     return(new TextSearch(text, type, caseSensitive));
 }
Example #3
0
 public TextSearch(string text, TextSearchType type = TextSearchType.Match, bool caseSensitive = true)
 {
     Text          = text;
     Type          = type;
     CaseSensitive = caseSensitive;
 }
Example #4
0
    private void FindByTextRootSearchTypeLabel_Click(object sender, EventArgs e)
    {
        m_text_search_type = TextSearchType.Root;
        PopulateAutoCompleteListBoxWithRoots();

        UpdateFindByTextControls();
        FindByTextControls_Enter(null, null);
    }
Example #5
0
    private void FindByTextProximitySearchTypeLabel_Click(object sender, EventArgs e)
    {
        m_text_search_type = TextSearchType.Proximity;
        PopulateAutoCompleteListBoxWithCurrentWords();
        FindByTextAllWordsRadioButton.Checked = true;

        UpdateFindByTextControls();
        FindByTextControls_Enter(null, null);
    }
Example #6
0
    private void FindByTextExactSearchTypeLabel_Click(object sender, EventArgs e)
    {
        m_text_search_type = TextSearchType.Exact;
        PopulateAutoCompleteListBoxWithNextWords();
        FindByTextAnywhereRadioButton.Checked = true;

        UpdateFindByTextControls();
        FindByTextControls_Enter(null, null);
    }