Esempio n. 1
0
 public FTPResult(FTPHelper.FTPHelper ftp, string savePath, string filename, bool isFugai)
 {
     InitializeComponent();
     ftpH = ftp;
     listView1.ColumnClick += new ColumnClickEventHandler(ListView1Column_MouseClick);
     this.savePath          = savePath;
     this.filename          = filename;
     this.isFugai           = isFugai;
 }
Esempio n. 2
0
 public static long GetFTPFileLength(Uri uri, string username, string password)
 {
     FTPHelper.FTPHelper ftp = new FTPHelper.FTPHelper(uri.ToString(), username, password);
     return(ftp.GetFileLength());
 }