Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.form1 = ((ArteDraw.MainWindow)(target));

            #line 8 "..\..\..\MainWindow.xaml"
                this.form1.Loaded += new System.Windows.RoutedEventHandler(this.form1_Loaded);

            #line default
            #line hidden
                return;

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

            case 3:
                this.ribbon1 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 4:
                this.stac_propiedades = ((System.Windows.Controls.StackPanel)(target));
                return;

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

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

            #line 34 "..\..\..\MainWindow.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.OnLoadImage);

            #line default
            #line hidden
                return;

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

            #line 39 "..\..\..\MainWindow.xaml"
                this.btn_fre.Click += new System.Windows.RoutedEventHandler(this.OnBringFront);

            #line default
            #line hidden
                return;

            case 8:
                this.btn_tra = ((System.Windows.Controls.Button)(target));

            #line 44 "..\..\..\MainWindow.xaml"
                this.btn_tra.Click += new System.Windows.RoutedEventHandler(this.OnSendBack);

            #line default
            #line hidden
                return;

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

            case 10:
                this.canvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 11:
                this.stac_cordofundo = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            case 13:
                this.stac_cordalinha = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 14:
                this.Cordalinha = ((ArteDraw.cor_da_linha)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 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;
        }