private void bConn_Click(object sender, EventArgs e) { using (ConnForm form = new ConnForm()) { if (form.ShowDialog(this) == DialogResult.OK) { using (this.pop3) { } this.pop3 = form.pop3; UpdateLvm(); } } }
private void bOk_Click(object sender, EventArgs e) { pop3 = new POP3(Host, Port, U, P); DialogResult = DialogResult.OK; Close(); }