Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserControl0 = ((CoderEditor.CodeEditor)(target));
                return;

            case 2:

            #line 18 "..\..\UserControl1.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.newFileClick);

            #line default
            #line hidden
                return;

            case 3:

            #line 21 "..\..\UserControl1.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.openFileClick);

            #line default
            #line hidden
                return;

            case 4:

            #line 24 "..\..\UserControl1.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.saveFileClick);

            #line default
            #line hidden
                return;

            case 5:

            #line 27 "..\..\UserControl1.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.saveAsFileClick);

            #line default
            #line hidden
                return;

            case 6:
                this.increaseFontButton = ((System.Windows.Controls.Button)(target));

            #line 51 "..\..\UserControl1.xaml"
                this.increaseFontButton.Click += new System.Windows.RoutedEventHandler(this.increaseFontClick);

            #line default
            #line hidden
                return;

            case 7:
                this.decreaseFontButton = ((System.Windows.Controls.Button)(target));

            #line 54 "..\..\UserControl1.xaml"
                this.decreaseFontButton.Click += new System.Windows.RoutedEventHandler(this.decreaseFontClick);

            #line default
            #line hidden
                return;

            case 8:
                this.textArea = ((ICSharpCode.AvalonEdit.TextEditor)(target));
                return;

            case 9:
                this.Coder = ((CoderEditor.AvalonEditBehaviour)(target));
                return;
            }
            this._contentLoaded = true;
        }