Ejemplo n.º 1
0
        public void AddResult(FindResult result, int line, string text)
        {
            if (result == null)
                throw new ArgumentNullException("result");
            if (text == null)
                throw new ArgumentNullException("text");

            int outputLine = _results.Count;

            _results.Add(result);

            string append = String.Format(
                "{0}({1}): {2}" + Environment.NewLine,
                result.FileName,
                line + 1,
                text
            );

            _editor.TextBuffer.ReplaceLines(
                outputLine,
                0,
                outputLine,
                0,
                append
            );
        }