Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.prestamosWindow = ((Ejercicio2.WindowPrestamos)(target));
                return;

            case 2:
                this.buscarLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.buscarSocioLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.busquedaSocioComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:
                this.busquedaSocioTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 7:
                this.busquedaLibroComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

            #line 40 "..\..\WindowPrestamos.xaml"
                this.registrarButton.Click += new System.Windows.RoutedEventHandler(this.registrarButton_Click);

            #line default
            #line hidden
                return;

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

            #line 41 "..\..\WindowPrestamos.xaml"
                this.devolverButton.Click += new System.Windows.RoutedEventHandler(this.devolverButton_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.ejemplaresLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.ejemplaresDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

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

            #line 55 "..\..\WindowPrestamos.xaml"
                this.actualizarButton.Click += new System.Windows.RoutedEventHandler(this.actualizarButton_Click);

            #line default
            #line hidden
                return;

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

            #line 56 "..\..\WindowPrestamos.xaml"
                this.cancelarButton.Click += new System.Windows.RoutedEventHandler(this.cancelarButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        private void prestamosButton_Click(object sender, RoutedEventArgs e)
        {
            WindowPrestamos windowPrestamos = new WindowPrestamos();

            windowPrestamos.Show();
        }