2 using System.Collections.Generic;
3 using System.ComponentModel;
8 using System.Threading.Tasks;
9 using System.Windows.Forms;
10 using System.Configuration;
12 namespace MailDivSender
17 public partial class ServerSettingDlg : Form
22 public ServerSettingDlg()
24 InitializeComponent();
30 /// <param name="sender"></param>
31 /// <param name="e"></param>
32 private void OkBtn_Click(object sender, EventArgs e)
40 protected void SaveSetting()
42 Properties.Settings.Default.User = UserTxt.Text;
43 Properties.Settings.Default.Pass = PassTxt.Text;
44 Properties.Settings.Default.Imap4Server = Imap4ServerTxt.Text;
45 Properties.Settings.Default.Imap4Port = (int)Imap4ServerPort.Value;
46 Properties.Settings.Default.SMTPServer = SMTPServerTxt.Text;
47 Properties.Settings.Default.SMTPPort = (int)SMTPServerPort.Value;
48 Properties.Settings.Default.Signature = SignatureTxt.Text;
50 Properties.Settings.Default.Save();
56 protected void LoadSetting()
58 UserTxt.Text = Properties.Settings.Default.User;
59 PassTxt.Text = Properties.Settings.Default.Pass;
60 Imap4ServerTxt.Text = Properties.Settings.Default.Imap4Server;
61 Imap4ServerPort.Value = Properties.Settings.Default.Imap4Port;
62 SMTPServerTxt.Text = Properties.Settings.Default.SMTPServer;
63 SMTPServerPort.Value = Properties.Settings.Default.SMTPPort;
64 SignatureTxt.Text = Properties.Settings.Default.Signature;
70 /// <param name="sender"></param>
71 /// <param name="e"></param>
72 private void ServerSettingDlg_Load(object sender, EventArgs e)