void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((Aprender_Teclado.editorDeActividades)(target)); #line 8 "..\..\editorDeActividades.xaml" this.Window.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 8 "..\..\editorDeActividades.xaml" this.Window.KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown); #line default #line hidden return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.txtTextoActividad = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.cmbDificultad = ((System.Windows.Controls.ComboBox)(target)); return; case 5: this.cmbTipo = ((System.Windows.Controls.ComboBox)(target)); return; case 6: this.btnGuardar = ((System.Windows.Controls.Button)(target)); #line 16 "..\..\editorDeActividades.xaml" this.btnGuardar.Click += new System.Windows.RoutedEventHandler(this.btnGuardar_Click); #line default #line hidden return; case 7: this.txtNombreActividad = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.linkEliminarActividad = ((Aprender_Teclado.etiquetaLink)(target)); return; case 9: this.txtAutor = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }
private void linkModificarActividad_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if (listActividades.SelectedItem == null) //si no ha elegido actividad MessageBox.Show("No se ha elegido ninguna actividad para modificar, por favor elija una antes de hacer clic aquí", "Falta elegir"); else //si eligió actividad para modificar { editorDeActividades edit = new editorDeActividades(); edit.IDActAModificar = lecciones[listActividades.SelectedIndex].IdLección.ToString(); edit.Show(); this.Close(); } }
private void linkModificarActividad_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if (listActividades.SelectedItem == null) //si no ha elegido actividad { MessageBox.Show("No se ha elegido ninguna actividad para modificar, por favor elija una antes de hacer clic aquí", "Falta elegir"); } else //si eligió actividad para modificar { editorDeActividades edit = new editorDeActividades(); edit.IDActAModificar = lecciones[listActividades.SelectedIndex].IdLección.ToString(); edit.Show(); this.Close(); } }
private static void abrirActividades() { editorDeActividades editorAct = new editorDeActividades(); editorAct.ShowDialog(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((Aprender_Teclado.editorDeActividades)(target)); #line 8 "..\..\editorDeActividades.xaml" this.Window.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.txtTextoActividad = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.cmbDificultad = ((System.Windows.Controls.ComboBox)(target)); return; case 5: this.cmbTipo = ((System.Windows.Controls.ComboBox)(target)); return; case 6: this.btnGuardar = ((System.Windows.Controls.Button)(target)); #line 16 "..\..\editorDeActividades.xaml" this.btnGuardar.Click += new System.Windows.RoutedEventHandler(this.btnGuardar_Click); #line default #line hidden return; case 7: this.txtNombreActividad = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.linkEliminarActividad = ((Aprender_Teclado.etiquetaLink)(target)); return; case 9: this.txtAutor = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }