void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.AlumnosPerfilWindow1 = ((CUADERNODELPROFESOR.AlumnosPerfilWindow)(target)); return; case 2: this.txtNombrePerfilAlumno = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.txtApellidosPerfilAlumno = ((System.Windows.Controls.PasswordBox)(target)); return; case 4: this.txtDireccionPerfilAlumno = ((System.Windows.Controls.PasswordBox)(target)); return; case 5: this.txtTelefonoPerfilAlumno = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.txtEmailPerfilAlumno = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.txtNotaPerfilAlumno = ((System.Windows.Controls.PasswordBox)(target)); return; } this._contentLoaded = true; }
private void perfilAlumnos(object sender, RoutedEventArgs e) { // SI NO TENEMOS UNA VENTANA YA LA MOSTRAMOS if (!ventanaAbierta()) { if (dgAlumnosMainAlumnos.SelectedItem != null) { Alumno alumno = dgAlumnosMainAlumnos.SelectedItem as Alumno; AlumnosPerfilWindow alumnoFicha = new AlumnosPerfilWindow(alumno.id); alumnoFicha.Show(); alumnoFicha.Owner = this; } } }
private void alumnosDGClick(object sender, MouseButtonEventArgs e) { if (!ventanaAbierta()) { if (dgAlumnosMainAlumnos.SelectedItem != null) { // COMPROBAMOS QUE PANEL ESTÁ VISIBLE SI ALUMNOS O CLASES // PARA SABER DE QUÉ DATAGRID DEBEMOS RECOGER EL ALUMNO CLICADO Alumno alumno; if (panelAlumnos.Visibility == Visibility.Visible) { alumno = dgAlumnosMainAlumnos.SelectedItem as Alumno; } else { alumno = dgAlumnosMainClases.SelectedItem as Alumno; } AlumnosPerfilWindow alumnoFicha = new AlumnosPerfilWindow(alumno.id); alumnoFicha.Show(); alumnoFicha.Owner = this; } } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.AlumnosPerfilWindow1 = ((CUADERNODELPROFESOR.AlumnosPerfilWindow)(target)); return; case 2: this.txtNombrePerfilAlumno = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.txtApellidosPerfilAlumno = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.txtDireccionPerfilAlumno = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.txtTelefonoPerfilAlumno = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.txtEmailPerfilAlumno = ((System.Windows.Controls.TextBox)(target)); return; case 7: #line 27 "..\..\..\ui\AlumnosPerfilWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.editarAlumno); #line default #line hidden return; case 8: #line 28 "..\..\..\ui\AlumnosPerfilWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.eliminarAlumno); #line default #line hidden return; case 9: this.dgMatriculasPerfilAlumno = ((System.Windows.Controls.DataGrid)(target)); #line 32 "..\..\..\ui\AlumnosPerfilWindow.xaml" this.dgMatriculasPerfilAlumno.AutoGeneratingColumn += new System.EventHandler <System.Windows.Controls.DataGridAutoGeneratingColumnEventArgs>(this.camposGridMatriculas); #line default #line hidden return; case 10: #line 34 "..\..\..\ui\AlumnosPerfilWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.desmatricular); #line default #line hidden return; case 11: this.cbAsignaturasMatriculadas = ((System.Windows.Controls.ComboBox)(target)); #line 40 "..\..\..\ui\AlumnosPerfilWindow.xaml" this.cbAsignaturasMatriculadas.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.actualizarCBTareas); #line default #line hidden return; case 12: this.cbTareasAsignaturasMatriculadas = ((System.Windows.Controls.ComboBox)(target)); #line 42 "..\..\..\ui\AlumnosPerfilWindow.xaml" this.cbTareasAsignaturasMatriculadas.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.actualizarNota); #line default #line hidden return; case 13: this.txtNotaPerfilAlumno = ((System.Windows.Controls.TextBox)(target)); return; case 14: #line 47 "..\..\..\ui\AlumnosPerfilWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ponerNota); #line default #line hidden return; } this._contentLoaded = true; }