void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.CursosWindow1 = ((CUADERNODELPROFESOR.CursosWindow)(target)); return; case 2: this.txtNombreCurso = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.cbTipoCurso = ((System.Windows.Controls.ComboBox)(target)); return; case 4: this.txtGradoCurso = ((System.Windows.Controls.PasswordBox)(target)); return; case 5: this.txtNivelCurso = ((System.Windows.Controls.PasswordBox)(target)); return; } this._contentLoaded = true; }
private void cursosDGClick(object sender, MouseButtonEventArgs e) { if (!ventanaAbierta()) { if (dgCursosMainCursos.SelectedItem != null) { Curso curso = dgCursosMainCursos.SelectedItem as Curso; CursosWindow cursosFicha = new CursosWindow(curso.id); cursosFicha.Show(); cursosFicha.Owner = this; } } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.CursosWindow1 = ((CUADERNODELPROFESOR.CursosWindow)(target)); return; case 2: #line 11 "..\..\..\ui\CursosWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.eliminarCurso); #line default #line hidden return; case 3: #line 12 "..\..\..\ui\CursosWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.editarCurso); #line default #line hidden return; case 4: this.txtNombreCurso = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.cbTipoCurso = ((System.Windows.Controls.ComboBox)(target)); #line 19 "..\..\..\ui\CursosWindow.xaml" this.cbTipoCurso.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.actualizarNombreTipo); #line default #line hidden return; case 6: this.txtGradoCurso = ((System.Windows.Controls.TextBox)(target)); #line 25 "..\..\..\ui\CursosWindow.xaml" this.txtGradoCurso.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.actualizarNombre); #line default #line hidden return; case 7: this.cbNivelFichaCurso = ((System.Windows.Controls.ComboBox)(target)); #line 27 "..\..\..\ui\CursosWindow.xaml" this.cbNivelFichaCurso.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.actualizarNombreNivel); #line default #line hidden return; case 8: this.lblLetra = ((System.Windows.Controls.Label)(target)); return; case 9: this.txtLetraFichaCurso = ((System.Windows.Controls.TextBox)(target)); #line 29 "..\..\..\ui\CursosWindow.xaml" this.txtLetraFichaCurso.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.actualizarNombre); #line default #line hidden return; } this._contentLoaded = true; }