private void currentMailToolStripMenuItem_Click(object sender, EventArgs e) { decryptForm decForm = new decryptForm(); if (decForm.ShowDialog() == DialogResult.OK) { try { MerMail.Program.email decryptedMail = MerMail.Program.decryptMail(currentMail,decForm.rtnUseSymmetric,decForm.SymmetricKey,decForm.rtnUseAsymmetric,decForm.private_key); DecryptedMail decMailForm = new DecryptedMail(decryptedMail); decMailForm.Show(); } catch (Exception err) { MessageBox.Show("Fejl ved decryptering:" + Environment.NewLine + err.Message); } //decForm.private_key //decForm.private } }
private void currentMailToolStripMenuItem_Click(object sender, EventArgs e) { decryptForm decForm = new decryptForm(); if (decForm.ShowDialog() == DialogResult.OK) { try { MerMail.Program.email decryptedMail = MerMail.Program.decryptMail(currentMail, decForm.rtnUseSymmetric, decForm.SymmetricKey, decForm.rtnUseAsymmetric, decForm.private_key); DecryptedMail decMailForm = new DecryptedMail(decryptedMail); decMailForm.Show(); } catch (Exception err) { MessageBox.Show("Fejl ved decryptering:" + Environment.NewLine + err.Message); } //decForm.private_key //decForm.private } }