private void Add_Click(object sender, EventArgs e) { AddServer form = new AddServer(_servers); if (form.ShowDialog() == DialogResult.OK) { Servers.Items.Clear(); foreach (Config.Server srv in _servers) { Servers.Items.Add(srv.Address); } _config.SetSmtp(_servers); } }
private void Show_Click(object sender, EventArgs e) { if (Servers.SelectedIndex >= 0) { AddServer form = new AddServer(_servers, Servers.SelectedIndex); if (form.ShowDialog() == DialogResult.OK) { Servers.Items.Clear(); foreach (Config.Server srv in _servers) { Servers.Items.Add(srv.Address); } _config.SetPop3(_servers); } } }