private void buttonApply_Click(object sender, EventArgs e) { buttonApply.Enabled = false; buttonPreview.Enabled = false; OutlookHelperTool.setMailText(mailitem, tempMessage); OutlookHelperTool.cutCryptedSubject(mailitem); mailitem.Save(); this.Close(); }
private void button1_Click_1(object sender, EventArgs e) { buttonApply.Enabled = false; buttonPreview.Enabled = false; OutlookHelperTool.setMailText(tempMessage); if (cryption) { OutlookHelperTool.setCryptedSubject(); } else { OutlookHelperTool.cutCryptedSubject(); } this.Close(); }