예제 #1
0
 void OpenFile(string fileName, int line, int column)
 {
     if (fileName != textEditorFileName)
     {
         textEditor.Load(fileName);
     }
     textEditor.ScrollToEnd();
     textEditor.TextArea.Caret.Location = new ICSharpCode.AvalonEdit.Document.TextLocation(line, column);
     textEditor.ScrollToLine(line);
     CodeCoverageService.ShowCodeCoverage(new AvalonEditTextEditorAdapter(textEditor), fileName);
 }
예제 #2
0
 void OpenFile(string fileName, int line, int column)
 {
     if (fileName != textEditorControl.FileName)
     {
         textEditorControl.LoadFile(fileName, true, true);
     }
     textEditorControl.ActiveTextAreaControl.ScrollTo(int.MaxValue);
     textEditorControl.ActiveTextAreaControl.Caret.Line = line - 1;
     textEditorControl.ActiveTextAreaControl.ScrollToCaret();
     CodeCoverageService.ShowCodeCoverage(textEditorControl, fileName);
 }
 void OpenFile(string fileName, int line, int column)
 {
     if (fileName != textEditorFileName)
     {
         textEditor.Load(fileName);
         textEditor.SyntaxHighlighting = GetSyntaxHighlighting(fileName);
     }
     textEditor.ScrollToEnd();
     textEditor.TextArea.Caret.Location = new TextLocation(line, column);
     textEditor.ScrollToLine(line);
     CodeCoverageService.ShowCodeCoverage(new AvalonEditTextEditorAdapter(textEditor), fileName);
 }