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(); } }
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(); } }
private void listBox1_DoubleClick(object sender, EventArgs e) { string filename = "";// listBox1.SelectedItem.ToString(); Dictionary <string, int> GetFtpList = FileUpDownload.GetFtpList("filename"); }
private void button1_Click(object sender, EventArgs e) { Dictionary <string, int> getFtpList = FileUpDownload.GetFtpList(""); }