private void SetSearchPattern(SearchPattern sp) { searchPattern = sp; Mono.TextEditor.SearchRequest sr = new Mono.TextEditor.SearchRequest(); sr.CaseSensitive = searchPattern.CaseSensitive; sr.SearchPattern = searchPattern.Expresion.ToString(); sr.WholeWordOnly = searchPattern.WholeWorlds; this.editor.SearchEngine.SearchRequest = sr; }
private void SetSearchPattern(SearchPattern sp) { searchPattern = sp; Mono.TextEditor.SearchRequest sr = new Mono.TextEditor.SearchRequest(); sr.CaseSensitive = searchPattern.CaseSensitive; sr.SearchPattern = searchPattern.Expresion.ToString(); sr.WholeWordOnly = searchPattern.WholeWorlds; this.editor.SearchEngine.SearchRequest = sr; }