Example #1
0
 private void SaveImageFtp(RecentFile recentfile)
 {
     this.SaveImageLocal(recentfile.GetDownloadFilePath());
     Ftp.UploadFile(recentfile.FtpUserName,
                    recentfile.FtpPassword,
                    recentfile.GetFtpUrlFilePath(),
                    recentfile.GetDownloadFilePath());
 }
Example #2
0
        private void OpenImageFtp(RecentFile imagepath)
        {
            var downloadfilepath = imagepath.GetDownloadFilePath();
            var test             = Path.Combine(imagepath.FtpHostName, imagepath.FileDirectory, imagepath.FileName);
            var url = imagepath.GetFtpUrlFilePath();

            Ftp.DownloadFile(
                imagepath.FtpUserName,
                imagepath.FtpPassword,
                url,
                downloadfilepath);

            this.OpenImageLocal(downloadfilepath);
        }