private void btnAgregarAlumno_Click(object sender, EventArgs e) { var result = MessageBox.Show("Seleccione SI para agregar Documentos de Inscripción o NO para agregar Documentos de Inscripcion para Titulación de Licenciatura ", "Agregar Documentos", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { FormDocumentosInscripcion fa = new FormDocumentosInscripcion(null, false); fa.FormClosed += new FormClosedEventHandler(form_Closed); fa.Show(); } else { FormDocumentosInscripcionTitulacionLicenciatura fa = new FormDocumentosInscripcionTitulacionLicenciatura(null, false); fa.FormClosed += new FormClosedEventHandler(form_Closed); fa.Show(); } }
private void consultarToolStripMenuItem_Click(object sender, EventArgs e) { try { String rfc = dataGridViewDocumentos.CurrentRow.Cells[0].Value.ToString(); DocumentosInscripcion documentos = control.consultarEntregaDocumentos(rfc); if (documentos.tipoInscripcion == 2) { FormDocumentosInscripcionTitulacionLicenciatura fa = new FormDocumentosInscripcionTitulacionLicenciatura(documentos, true); fa.FormClosed += new FormClosedEventHandler(form_Closed); fa.Show(); } else if (documentos.tipoInscripcion == 1) { FormDocumentosInscripcion fa = new FormDocumentosInscripcion(documentos, true); fa.FormClosed += new FormClosedEventHandler(form_Closed); fa.Show(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }