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

            #line 8 "..\..\frmProductos.xaml"
                this.frmProductos.Closing += new System.ComponentModel.CancelEventHandler(this.frmProductos_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.gbxDatos = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 3:
                this.grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.lblCodigo = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.lblNombre = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.kbkCantidad = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.lblPrecio = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.txtCodigo = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.txtNombre = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.txtCantidad = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.txtPrecio = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.btnAgregar = ((System.Windows.Controls.Button)(target));

            #line 30 "..\..\frmProductos.xaml"
                this.btnAgregar.Click += new System.Windows.RoutedEventHandler(this.btnAgregar_Click);

            #line default
            #line hidden
                return;

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

            #line 31 "..\..\frmProductos.xaml"
                this.btnModiicar.Click += new System.Windows.RoutedEventHandler(this.btnModiicar_Click);

            #line default
            #line hidden
                return;

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

            #line 32 "..\..\frmProductos.xaml"
                this.btnEliminar.Click += new System.Windows.RoutedEventHandler(this.btnEliminar_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.btnBuscar = ((System.Windows.Controls.Button)(target));

            #line 33 "..\..\frmProductos.xaml"
                this.btnBuscar.Click += new System.Windows.RoutedEventHandler(this.btnBuscar_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.btnSubirImagen = ((System.Windows.Controls.Button)(target));

            #line 34 "..\..\frmProductos.xaml"
                this.btnSubirImagen.Click += new System.Windows.RoutedEventHandler(this.btnSubirImagen_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.image = ((System.Windows.Controls.Image)(target));
                return;

            case 18:
                this.lblNoDisponible = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.gbxRegistros = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 20:
                this.dgRegistros = ((System.Windows.Controls.DataGrid)(target));

            #line 40 "..\..\frmProductos.xaml"
                this.dgRegistros.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.dgRegistros_MouseLeftButtonDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.frmProductos = ((_100DaysOfCode_WPF.MainWindow)(target));
                return;

            case 2:
                this.groupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 3:
                this.gbxDatos = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.lblCodigo = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.lblNombre = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.kbkCantidad = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.lblPrecio = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.txtCodigo = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.txtNombre = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.txtCantidad = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.txtPrecio = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.btnAgregar = ((System.Windows.Controls.Button)(target));
                return;

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

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

            case 15:
                this.btnBuscar = ((System.Windows.Controls.Button)(target));
                return;

            case 16:
                this.btnSubirImagen = ((System.Windows.Controls.Button)(target));
                return;

            case 17:
                this.image = ((System.Windows.Controls.Image)(target));
                return;

            case 18:
                this.gbxRegistros = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 19:
                this.dgRegistros = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }