/// <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 }); }
public static TextSearch Create(string text, TextSearchType type = TextSearchType.Match, bool caseSensitive = true) { return(new TextSearch(text, type, caseSensitive)); }
public TextSearch(string text, TextSearchType type = TextSearchType.Match, bool caseSensitive = true) { Text = text; Type = type; CaseSensitive = caseSensitive; }
private void FindByTextRootSearchTypeLabel_Click(object sender, EventArgs e) { m_text_search_type = TextSearchType.Root; PopulateAutoCompleteListBoxWithRoots(); UpdateFindByTextControls(); FindByTextControls_Enter(null, null); }
private void FindByTextProximitySearchTypeLabel_Click(object sender, EventArgs e) { m_text_search_type = TextSearchType.Proximity; PopulateAutoCompleteListBoxWithCurrentWords(); FindByTextAllWordsRadioButton.Checked = true; UpdateFindByTextControls(); FindByTextControls_Enter(null, null); }
private void FindByTextExactSearchTypeLabel_Click(object sender, EventArgs e) { m_text_search_type = TextSearchType.Exact; PopulateAutoCompleteListBoxWithNextWords(); FindByTextAnywhereRadioButton.Checked = true; UpdateFindByTextControls(); FindByTextControls_Enter(null, null); }