/// <summary> /// Raises the <see cref="SearchPanel.SearchOptionsChanged" /> event. /// </summary> protected virtual void OnSearchOptionsChanged(SearchOptionsChangedEventArgs e) { if (SearchOptionsChanged != null) { SearchOptionsChanged(this, e); } }
void SearchOptionsChanged(object sender, SearchOptionsChangedEventArgs e) { SearchOptions.CurrentFindPattern = e.SearchPattern; SearchOptions.MatchCase = e.MatchCase; SearchOptions.MatchWholeWord = e.WholeWords; SearchOptions.SearchMode = e.UseRegex ? SearchMode.RegEx : SearchMode.Normal; }
/// <summary> /// Raises the <see cref="SearchPanel.SearchOptionsChanged" /> event. /// </summary> protected virtual void OnSearchOptionsChanged(SearchOptionsChangedEventArgs e) { SearchOptionsChanged?.Invoke(this, e); }
void search_SearchOptionsChanged(object sender, SearchOptionsChangedEventArgs e) { searchPanel = sender as SearchPanel; }