示例#1
0
 public PythonConsolePad()
 {
     textEditorControl = new TextEditorControl();
     textEditorControl.CreateControl();
     textEditor = new TextEditor(textEditorControl);
     host       = new PythonConsoleHost(textEditor);
     host.Run();
 }
        public void SetUpFixture()
        {
            textEditorControl = new TextEditorControl();

            // Force creation of handle otherwise InvokeRequired always returns false.
            textEditorControl.CreateControl();

            textEditorControl.IndentStyle       = IndentStyle.Smart;
            defaultTextEditorControlIndentStyle = textEditorControl.IndentStyle;

            textEditor = new TextEditor(textEditorControl);
            defaultTextEditorIndentStyle = textEditor.IndentStyle;
        }