Exemplo n.º 1
0
 private void menuFtpAdd_Click(object sender, EventArgs e)
 {
     using (MailFtpEditDialog dlg = new MailFtpEditDialog(Manager, null))
     {
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             Manager.ReloadFtpList();
             ResetDialog();
         }
     }
 }
Exemplo n.º 2
0
 private void menuFtpEdit_Click(object sender, EventArgs e)
 {
     if (lvFtpList.SelectedItems.Count > 0)
     {
         ListViewItem lvi = lvFtpList.SelectedItems[0];
         if (lvi != null)
         {
             MailFtp mailFtp = (MailFtp)lvi.Tag;
             using (MailFtpEditDialog dlg = new MailFtpEditDialog(Manager, mailFtp))
             {
                 if (dlg.ShowDialog() == DialogResult.OK)
                 {
                     Manager.ReloadFtpList();
                     ResetDialog();
                 }
             }
         }
     }
 }