protected override void AbrirOpcionEnviarCorreo() { enviarcorreo = new Enviar_Mail(); mail = new MailMessage(); if (CheckMade()) { base.AbrirOpcionEnviarCorreo(); if (enviarcorreo.ShowDialog() == DialogResult.OK) { SetFormFunctionName("Enviando..."); //foreach (DataGridViewRow row in refrescarcon.MainGrid.Rows) //{ // int pos = row.Cells[""].RowIndex; // if (Convert.ToBoolean(row.Cells[""].EditedFormattedValue)) // { // GeneraReporte("Enviar", pos, Convert.ToInt16(row.Cells["nulo1"].Value)); // } //} //InvocarFormulario(enviarcorreo); } } else { MessageBox.Show("Debe hacer selección", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }
private void BtnEnviar_Click(object sender, EventArgs e) { if (CheckMade()) { GenerateIdForRepo(); GeneraReporte("Enviar", idregistro); Enviar_Mail enviarform = new Enviar_Mail(); enviarform.attachment = attatchments.Substring(0, attatchments.Length - 2); enviarform.mail = mail; if (enviarform.ShowDialog() == DialogResult.OK) { RemoveSeleccionColumn(); SetVisible(true); SetFormFunctionName(""); } } else { MessageBox.Show("Debe hacer selección", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }