void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.NuevoLibro1 = ((Ejercicio6.NuevoLibro)(target)); return; case 2: this.GuardarButton = ((System.Windows.Controls.Button)(target)); #line 26 "..\..\NuevoLibro.xaml" this.GuardarButton.Click += new System.Windows.RoutedEventHandler(this.GuardarButton_Click); #line default #line hidden return; case 3: this.CerrarButton = ((System.Windows.Controls.Button)(target)); #line 27 "..\..\NuevoLibro.xaml" this.CerrarButton.Click += new System.Windows.RoutedEventHandler(this.CerrarButton_Click); #line default #line hidden return; case 4: this.CodigoTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 5: this.CodigoTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.NumEjemplaresTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.NumEjemplaresTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.ISBNTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 9: this.ISBNTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.TituloTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 11: this.TituloTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 12: this.AutorTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 13: this.AutorTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 14: this.DescripcionTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 15: this.DescripcionTextBox = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }
private void anadirButton_Click(object sender, RoutedEventArgs e) { NuevoLibro abrirVentana = new NuevoLibro(); abrirVentana.Show(); }