예제 #1
0
파일: Form1.cs 프로젝트: xilo0922/Darren
        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();
            }
        }
예제 #2
0
파일: Form1.cs 프로젝트: xilo0922/Darren
        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();
            }
        }
예제 #3
0
파일: Form1.cs 프로젝트: xilo0922/Darren
 private void listBox1_DoubleClick(object sender, EventArgs e)
 {
     string filename = "";// listBox1.SelectedItem.ToString();
     Dictionary <string, int> GetFtpList = FileUpDownload.GetFtpList("filename");
 }
예제 #4
0
파일: Form1.cs 프로젝트: xilo0922/Darren
 private void button1_Click(object sender, EventArgs e)
 {
     Dictionary <string, int> getFtpList = FileUpDownload.GetFtpList("");
 }