void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.console = ((PythonConsoleControl.IronPythonConsoleControl)(target)); return; case 2: #line 36 "..\..\IronPythonControl.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.openFileClick); #line default #line hidden return; case 3: #line 39 "..\..\IronPythonControl.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.saveFileClick); #line default #line hidden return; case 4: #line 73 "..\..\IronPythonControl.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.runClick); #line default #line hidden return; case 5: this.textEditor = ((ICSharpCode.AvalonEdit.TextEditor)(target)); return; case 6: this.expander = ((System.Windows.Controls.Expander)(target)); return; case 7: this.propertyGridComboBox = ((System.Windows.Controls.ComboBox)(target)); #line 90 "..\..\IronPythonControl.xaml" this.propertyGridComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.propertyGridComboBoxSelectionChanged); #line default #line hidden return; case 8: this.propertyGrid = ((System.Windows.Controls.WpfPropertyGrid.PropertyGrid)(target)); return; } this._contentLoaded = true; }
internal static void BootstrapConsole(IronPythonConsoleControl console, Action<PythonConsole> initCallback = null) { // initialize when ready console.WithHost(host => { ConfigureVariables(host.Console); CallInitializeScript(host.Console); if (initCallback != null) initCallback(host.Console); }); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.console = ((PythonConsoleControl.IronPythonConsoleControl)(target)); return; case 2: #line 36 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.openFileClick); #line default #line hidden return; case 3: #line 39 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.saveFileClick); #line default #line hidden return; case 4: #line 73 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.runClick); #line default #line hidden return; case 5: #line 77 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.APIHelp_Click); #line default #line hidden return; case 6: this.textEditor = ((ICSharpCode.AvalonEdit.TextEditor)(target)); return; case 7: this.expander = ((System.Windows.Controls.Expander)(target)); return; case 8: this.propertyGridComboBox = ((System.Windows.Controls.ComboBox)(target)); #line 94 "..\..\..\MainWindow.xaml" this.propertyGridComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.propertyGridComboBoxSelectionChanged); #line default #line hidden return; case 9: this.propertyGrid = ((System.Windows.Controls.WpfPropertyGrid.PropertyGrid)(target)); return; } this._contentLoaded = true; }