void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ApuntesAltaWindow1 = ((CUADERNODELPROFESOR.ApuntesAltaWindow)(target)); return; case 2: this.txtNombreAsignatura = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.txtNombreApuntes = ((System.Windows.Controls.PasswordBox)(target)); return; case 4: this.cbTipoApuntes = ((System.Windows.Controls.ComboBox)(target)); return; case 5: this.txtEnlaceApuntes = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.txtDescripcionAputnes = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }
private void añadirApuntes(object sender, RoutedEventArgs e) { if (!ventanaAbierta()) { // RECOGEMOS LA ASIGNATURA SELECCIONADA DEL COMBOBOX int numAsignaturaSeleccionada = cbAsignaturasClases.SelectedIndex; if (numAsignaturaSeleccionada != -1) { Asignatura asignaturaSeleccionada = listaAsignaturas.ElementAt(numAsignaturaSeleccionada); ApuntesAltaWindow subirApuntes = new ApuntesAltaWindow(asignaturaSeleccionada); subirApuntes.Owner = this; subirApuntes.Show(); } else { Utils.msgBox("No ha seleccionado ninguna asignatura, use las listas superiores para ello", "ok", "warning"); } } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ApuntesAltaWindow1 = ((CUADERNODELPROFESOR.ApuntesAltaWindow)(target)); return; case 2: #line 11 "..\..\..\ui\ApuntesAltaWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.subirApunte); #line default #line hidden return; case 3: this.txtNombreAsignaturaApuntes = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.txtNombreApuntes = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.cbTipoApuntes = ((System.Windows.Controls.ComboBox)(target)); return; case 6: this.txtEnlaceApuntes = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.txtDescripcionAputnes = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }