コード例 #1
0
 private void PrepareTextEditor()
 {
     codeCompletion = new ICSharpCode.CodeCompletion.CSharpCompletion();
     codeCompletion.AddAssembly("UOMachine.exe");
     scriptTextBox.Completion = codeCompletion;
     scriptTextBox.FontFamily = new FontFamily("Consolas");
     scriptTextBox.FontSize   = 12;
     scriptTextBox.TextArea.DefaultInputHandler.NestedInputHandlers.Add(new SearchInputHandler(scriptTextBox.TextArea));
     FileNew_Click(null, null);
     scriptTextBox.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("C#");
     scriptTextBox.Options            = myCurrentOptions.TextEditorOptions;
     foldingManager = FoldingManager.Install(scriptTextBox.TextArea);
     new BraceFoldingStrategy().UpdateFoldings(foldingManager, scriptTextBox.Document);
 }
コード例 #2
0
 public void AddAssembly(string filename)
 {
     completion.AddAssembly(filename);
 }
コード例 #3
0
 public void ReferenceAssembly(Assembly assembly)
 {
     evaluator.ReferenceAssembly(assembly);
     codeCompletion.AddAssembly(assembly.Location);
 }