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; }
public static long GetFTPFileLength(Uri uri, string username, string password) { FTPHelper.FTPHelper ftp = new FTPHelper.FTPHelper(uri.ToString(), username, password); return(ftp.GetFileLength()); }