private void descargarMagistralDiploma() { if (checkBox_magistral.IsChecked == true) { foreach (List <string> magistral in listaMagistral) { Diploma diploma = new Diploma(magistral, eventosUsuario); diploma.Show(); } } else { for (int i = 0; i < comboBox_magistral.Items.Count; i++) { if (((CheckBox)comboBox_magistral.Items[i]).IsChecked == true) { foreach (List <string> magistral in listaMagistral) { if (((CheckBox)comboBox_magistral.Items[i]).Content.ToString() .Equals(magistral[0])) { Diploma diploma = new Diploma(magistral, eventosUsuario); diploma.Show(); } } } } } }
private void descargaParticipanteDiploma() { if (checkBox_participante.IsChecked == true) { foreach (List <string> participante in listaParticipante) { Diploma diploma = new Diploma(participante, eventosUsuario); diploma.Show(); } } else { for (int i = 0; i < comboBox_participante.Items.Count; i++) { if (((CheckBox)comboBox_participante.Items[i]).IsChecked == true) { foreach (List <string> participante in listaParticipante) { if (((CheckBox)comboBox_participante.Items[i]).Content.ToString() .Equals(participante[0])) { Diploma diploma = new Diploma(participante, eventosUsuario); diploma.Show(); } } } } } }
private void descargarAutorDiploma() { if (checkBox_autor.IsChecked == true) { foreach (List <string> autor in listaAutor) { Diploma diploma = new Diploma(autor, eventosUsuario); diploma.Show(); } } else { for (int i = 0; i < comboBox_autor.Items.Count; i++) { if (((CheckBox)comboBox_autor.Items[i]).IsChecked == true) { foreach (List <string> autor in listaAutor) { if (((CheckBox)comboBox_autor.Items[i]).Content.ToString() .Equals(autor[0])) { Diploma diploma = new Diploma(autor, eventosUsuario); diploma.Show(); } } } } } }