void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.sociosWindow = ((Ejercicio2.WindowSocios)(target)); return; case 2: this.buscarLabel = ((System.Windows.Controls.Label)(target)); return; case 3: this.busquedaComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 4: this.busquedaTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.buscarButton = ((System.Windows.Controls.Button)(target)); #line 33 "..\..\WindowSocios.xaml" this.buscarButton.Click += new System.Windows.RoutedEventHandler(this.buscarButton_Click); #line default #line hidden return; case 6: this.limpiarButton = ((System.Windows.Controls.Button)(target)); #line 34 "..\..\WindowSocios.xaml" this.limpiarButton.Click += new System.Windows.RoutedEventHandler(this.limpiarButton_Click); #line default #line hidden return; case 7: this.dniLabel = ((System.Windows.Controls.Label)(target)); return; case 8: this.dniTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.nombreLabel = ((System.Windows.Controls.Label)(target)); return; case 10: this.nombreTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 11: this.apellidosLabel = ((System.Windows.Controls.Label)(target)); return; case 12: this.apellidosTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.direccionLabel = ((System.Windows.Controls.Label)(target)); return; case 14: this.direccionTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 15: this.correoLabel = ((System.Windows.Controls.Label)(target)); return; case 16: this.correoTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 17: this.telefonoLabel = ((System.Windows.Controls.Label)(target)); return; case 18: this.telefonoTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 19: this.crearButton = ((System.Windows.Controls.Button)(target)); #line 55 "..\..\WindowSocios.xaml" this.crearButton.Click += new System.Windows.RoutedEventHandler(this.crearButton_Click); #line default #line hidden return; case 20: this.modificarButton = ((System.Windows.Controls.Button)(target)); #line 56 "..\..\WindowSocios.xaml" this.modificarButton.Click += new System.Windows.RoutedEventHandler(this.modificarButton_Click); #line default #line hidden return; case 21: this.eliminarButton = ((System.Windows.Controls.Button)(target)); #line 57 "..\..\WindowSocios.xaml" this.eliminarButton.Click += new System.Windows.RoutedEventHandler(this.eliminarButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void sociosButton_Click(object sender, RoutedEventArgs e) { WindowSocios windowSocios = new WindowSocios(); windowSocios.Show(); }