예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ribbonbar = ((ArteDraw.userribbon)(target));
                return;

            case 2:
                this.Ribon = ((System.Windows.Controls.Ribbon.Ribbon)(target));
                return;

            case 3:
                this.Inicio = ((System.Windows.Controls.Ribbon.RibbonTab)(target));

            #line 11 "..\..\..\..\usercontrol\userribbon.xaml"
                this.Inicio.AddHandler(System.Windows.Controls.Primitives.Selector.SelectedEvent, new System.Windows.RoutedEventHandler(this.OnTabInicio));

            #line default
            #line hidden
                return;

            case 4:
                this.Inicio1 = ((System.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 5:
                this.Vertical = ((System.Windows.Controls.Button)(target));
                return;

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

            #line 15 "..\..\..\..\usercontrol\userribbon.xaml"
                this.btn_esp.Click += new System.Windows.RoutedEventHandler(this.btn_esp_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.Portefolio = ((System.Windows.Controls.Ribbon.RibbonTab)(target));

            #line 24 "..\..\..\..\usercontrol\userribbon.xaml"
                this.Portefolio.AddHandler(System.Windows.Controls.Primitives.Selector.SelectedEvent, new System.Windows.RoutedEventHandler(this.OnTabPortefolio));

            #line default
            #line hidden
                return;

            case 8:
                this.PortefolioG = ((System.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 9:
                this.Vertical1 = ((System.Windows.Controls.Button)(target));
                return;

            case 10:
                this.btn_esp1 = ((System.Windows.Controls.Button)(target));
                return;

            case 11:
                this.Drive = ((System.Windows.Controls.Ribbon.RibbonTab)(target));

            #line 37 "..\..\..\..\usercontrol\userribbon.xaml"
                this.Drive.AddHandler(System.Windows.Controls.Primitives.Selector.SelectedEvent, new System.Windows.RoutedEventHandler(this.OnTabDrive));

            #line default
            #line hidden
                return;

            case 12:
                this.DriveG = ((System.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 13:
                this.Vertical2 = ((System.Windows.Controls.Button)(target));
                return;

            case 14:
                this.btn_esp2 = ((System.Windows.Controls.Button)(target));
                return;

            case 15:
                this.Google = ((System.Windows.Controls.Ribbon.RibbonTab)(target));

            #line 50 "..\..\..\..\usercontrol\userribbon.xaml"
                this.Google.AddHandler(System.Windows.Controls.Primitives.Selector.SelectedEvent, new System.Windows.RoutedEventHandler(this.OnTabGoogle));

            #line default
            #line hidden
                return;

            case 16:
                this.GoogleG = ((System.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 17:
                this.Vertical3 = ((System.Windows.Controls.Button)(target));
                return;

            case 18:
                this.btn_esp3 = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.form1 = ((ArteDraw.MainWindow)(target));
                return;

            case 2:
                this.grid_prin = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.Cordofundo = ((ArteDraw.cor_de_fundo)(target));
                return;

            case 4:
                this.Propiedades = ((ArteDraw.propiedades)(target));
                return;

            case 5:
                this.Cordalinha = ((ArteDraw.cor_da_linha)(target));
                return;

            case 6:
                this.scrofolha = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 7:
                this.canfolha = ((System.Windows.Controls.Canvas)(target));

            #line 20 "..\..\MainWindow.xaml"
                this.canfolha.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.canfolha_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 20 "..\..\MainWindow.xaml"
                this.canfolha.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.canfolha_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 20 "..\..\MainWindow.xaml"
                this.canfolha.MouseMove += new System.Windows.Input.MouseEventHandler(this.canfolha_MouseMove);

            #line default
            #line hidden

            #line 20 "..\..\MainWindow.xaml"
                this.canfolha.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.canfolha_MouseRightButtonDown);

            #line default
            #line hidden
                return;

            case 8:
                this.ribbon = ((ArteDraw.userribbon)(target));
                return;
            }
            this._contentLoaded = true;
        }