示例#1
0
        private void SaveSettings()
        {
            SMTPHost = SMTPHostBox.Text;
            SMTPName = SMTPNameBox.Text;
            SMTPPass = SMTPPassBox.Text;
            POPHost = POPHostBox.Text;
            POPName = POPNameBox.Text;
            POPPass = POPPassBox.Text;

            try
            {
                SMTPPort = Int32.Parse(SMTPPortBox.Text);
                POPPort = Int32.Parse(POPPortBox.Text);
                this.Close();
            }
            catch
            {
                MessageBox.Show("Wrong Port Format");
            }

            IOComms.writeSettings();
        }
示例#2
0
文件: MainForm.cs 项目: dusanp/email
 private void MainForm_Load(object sender, EventArgs e)
 {
     IOComms.readSettings();
 }