Exemplo n.º 1
0
        private void  载ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string         filename   = "";// listBox1.SelectedItem.ToString();
            SaveFileDialog fileDialog = new SaveFileDialog();

            fileDialog.Filter = "所有文件(*.*)|*.*";
            if (fileDialog.ShowDialog() == DialogResult.OK)
            {
                Action <int, int> t = new Action <int, int>(ShowResult);
                WaitFormService.WaitFormService.ShowWaitForm();
                FileUpDownload.FtpDownload(filename, fileDialog.FileName, true, t);
                WaitFormService.WaitFormService.CloseWaitForm();
            }
        }
Exemplo n.º 2
0
        private void   ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog fileDialog = new OpenFileDialog();

            fileDialog.Multiselect = true;
            fileDialog.Title       = "请选择文件";
            fileDialog.Filter      = "所有文件(*.*)|*.*";
            if (fileDialog.ShowDialog() == DialogResult.OK)
            {
                Action <int, int> t = new Action <int, int>(ShowResult);
                WaitFormService.WaitFormService.ShowWaitForm();
                FileUpDownload.FtpUpload(fileDialog.FileName, "", t);
                WaitFormService.WaitFormService.CloseWaitForm();
            }
        }
Exemplo n.º 3
0
 private void listBox1_DoubleClick(object sender, EventArgs e)
 {
     string filename = "";// listBox1.SelectedItem.ToString();
     Dictionary <string, int> GetFtpList = FileUpDownload.GetFtpList("filename");
 }
Exemplo n.º 4
0
 private void button1_Click(object sender, EventArgs e)
 {
     Dictionary <string, int> getFtpList = FileUpDownload.GetFtpList("");
 }