Пример #1
0
        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;
        }
Пример #2
0
        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;
        }