示例#1
0
 public POP3(MailAccount account)
 {
     this.account = account;
     mails = new ArrayList();
     info = "";
     infolock = new Object();
 }
示例#2
0
 private void btnConfirm_Click(object sender, EventArgs e)
 {
     account = new MailAccount(txtUsername.Text, txtPassword.Text,
                               txtPop3Add.Text, Convert.ToInt32(txtPop3Port.Text),
                               txtSmtpAdd.Text, Convert.ToInt32(txtSmtpPort.Text));
     this.Close();
 }
示例#3
0
        private void 新建账户ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            formAccount.ShowDialog();
            MailAccount account = formAccount.getAccount();

            if (accounts.ContainsKey(account.Username))
            {
                return;
            }
            accounts.Add(account.Username, account);
            accountUpdate();
        }
示例#4
0
 public SMTP(MailAccount account)
 {
     this.account = account;
     info         = "";
     infolock     = new Object();
 }