示例#1
0
文件: SmtpSet.cs 项目: maziesmith/KOS
        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);
            }
        }
示例#2
0
 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);
         }
     }
 }