Пример #1
0
 private void 新建文件夹ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (NewFolderForm dlg = new NewFolderForm())
     {
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             if (!string.IsNullOrEmpty(dlg.newFolder))
             {
                 bc.MakeDir(servePath + dlg.newFolder, ftpHost, ftpUserName, ftpPassword);
                 listView_ftp.Items.Clear();
                 bc.GetFtpServerIco(imageList2, ftpHost, ftpUserName, ftpPassword, listView_ftp, servePath);
             }
         }
     }
 }
Пример #2
0
 private void 新建文件夹ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (NewFolderForm dlg = new NewFolderForm())
     {
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             if (!string.IsNullOrEmpty(dlg.newFolder))
             {
                 bc.MakeDir(servePath + dlg.newFolder, ftpHost, ftpUserName, ftpPassword);
                 listView_ftp.Items.Clear();
                 bc.GetFtpServerIco(imageList2, ftpHost, ftpUserName, ftpPassword, listView_ftp, servePath);
             }
         }
     }
 }