private void linkToSetup_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { AccountSetUpDialog setup = new AccountSetUpDialog(); setup.ShowDialog(); }
public void sendEmail(string method) { if (method.CompareTo("local") == 0) { formParent.setDefaultEmailMethod("local"); System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo.FileName = "mailto:?subject=Krypt-Zapper message&body=" + richTextBox1.Text; proc.Start(); } else { formParent.setDefaultEmailMethod("account"); //----------------------------------------------------- if (isEmailSetup == false) { AccountSetUpDialog accountSet = new AccountSetUpDialog(); if (accountSet.ShowDialog() == DialogResult.Cancel) { accountSet.Close(); } else //(accountSet.ShowDialog() == DialogResult.OK) { accountHost = accountSet.EmailHost; accountPort = int.Parse(accountSet.EmailPort); accountPassword = accountSet.EmailPassword; accountEmailFrom = accountSet.FromEmail; fromAddress = new MailAddress(accountEmailFrom, "From Name"); isEmailSetup = true; sendEmailFromAccountChooseTo(); } } //----------------------------------------------------- else if (isEmailSetup == true) { sendEmailFromAccountChooseTo(); } //---------------------------------------------------------- } }
private void setUpAccountToolStripMenuItem_Click(object sender, EventArgs e) { AccountSetUpDialog setupPage = new AccountSetUpDialog(); if (setupPage.ShowDialog() == DialogResult.OK) { MessageBox.Show("This feature will be coming soon!"); // This feature will be implemented in the future. Check our Design Document // to read our plans for this item. } }