private void button1_Click(object sender, EventArgs e) { client2 = new FTPClient(txt_address.Text, "/", txt_user.Text, txt_pswd.Text, 21); new Thread(new ThreadStart(GetFile)).Start(); }
private void btn_upload_Click(object sender, EventArgs e) { client1 = new FTPClient(txt_address.Text, "/", txt_user.Text, txt_pswd.Text, 21); new Thread(new ThreadStart(UploadFile)).Start(); }