private void accederButton_Click(object sender, RoutedEventArgs e) { ConsultasWindow consultasWindow = new ConsultasWindow(); consultasWindow.Show(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Consultas = ((Ejercicio1.ConsultasWindow)(target)); return; case 2: this.mantenimientoButton = ((System.Windows.Controls.Button)(target)); #line 21 "..\..\ConsultasWindow.xaml" this.mantenimientoButton.Click += new System.Windows.RoutedEventHandler(this.mantenimientoButton_Click); #line default #line hidden return; case 3: this.consultarUsuarioGroupBox = ((System.Windows.Controls.GroupBox)(target)); return; case 4: this.consultarTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.consultarButton = ((System.Windows.Controls.Button)(target)); #line 27 "..\..\ConsultasWindow.xaml" this.consultarButton.Click += new System.Windows.RoutedEventHandler(this.consultarButton_Click); #line default #line hidden return; case 6: this.consultarEstadoGroupBox = ((System.Windows.Controls.GroupBox)(target)); return; case 7: this.activaRadioButton = ((System.Windows.Controls.RadioButton)(target)); return; case 8: this.bloqueadaRadioButton = ((System.Windows.Controls.RadioButton)(target)); return; case 9: this.deshabilitadaRadioButton = ((System.Windows.Controls.RadioButton)(target)); return; case 10: this.consultarEstadoButton = ((System.Windows.Controls.Button)(target)); #line 38 "..\..\ConsultasWindow.xaml" this.consultarEstadoButton.Click += new System.Windows.RoutedEventHandler(this.consultarEstadoButton_Click); #line default #line hidden return; case 11: this.consultarFechaRegistroGroupBox = ((System.Windows.Controls.GroupBox)(target)); return; case 12: this.consultarFechaDatePicker = ((System.Windows.Controls.DatePicker)(target)); return; case 13: this.consultarFechaButton = ((System.Windows.Controls.Button)(target)); #line 47 "..\..\ConsultasWindow.xaml" this.consultarFechaButton.Click += new System.Windows.RoutedEventHandler(this.consultarFechaButton_Click); #line default #line hidden return; case 14: this.datosDataGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 15: this.verDatosButton = ((System.Windows.Controls.Button)(target)); #line 66 "..\..\ConsultasWindow.xaml" this.verDatosButton.Click += new System.Windows.RoutedEventHandler(this.verDatosButton_Click); #line default #line hidden return; } this._contentLoaded = true; }