Esempio n. 1
0
        private void btnDownload_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog fldDlg = new FolderBrowserDialog();

            if (txtUpload.Text.Trim().Length > 0)
            {
                if (fldDlg.ShowDialog() == DialogResult.OK)
                {
                    client.DownloadFile(txtUpload.Text.Trim(), fldDlg.SelectedPath);
                }
            }
            else
            {
                MessageBox.Show("Please enter the File name to download");
            }
        }
Esempio n. 2
0
 private void button4_Click(object sender, EventArgs e)
 {
     client.DownloadFile(textBox4.Text, textBox5.Text);
 }