private void btnEnviarCorreo_Click(object sender, EventArgs e) { if (Prestamo != null) { Prest_Logica.pdf(Prestamo); try { Menu_Profesor.frmEnviarCorreos ofrm = new Menu_Profesor.frmEnviarCorreos(); ofrm.Estudiante = estudiante; ofrm.ShowDialog(); } catch (Exception) { throw; } } }
private void btnEnviarCorreo_Click(object sender, EventArgs e) { if (Prestamo != null) { Prest_Logica.pdf(Prestamo); try { Usuarios_Finales.Menu_Profesor.frmEnviarCorreos ofrm = new Usuarios_Finales.Menu_Profesor.frmEnviarCorreos(); ofrm.Estudiante = estudiante; ofrm.ShowDialog(); } catch (Exception) { throw; } } else { MessageBox.Show("No se ecuentra un Prestamo registrado", "Escuela Platanares", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } }