Exemple #1
0
 private void SaveImageFtp(RecentFile recentfile)
 {
     this.SaveImageLocal(recentfile.GetDownloadFilePath());
     Ftp.UploadFile(recentfile.FtpUserName,
                    recentfile.FtpPassword,
                    recentfile.GetFtpUrlFilePath(),
                    recentfile.GetDownloadFilePath());
 }
Exemple #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);
        }
Exemple #3
0
        private void OpenImage(RecentFile recentfile)
        {
            if (recentfile.Type == RecentFileType.Local)
            {
                this.SelectedImagePath = recentfile.GetFilePath();
                this.OpenImageLocal(this.SelectedImagePath);
            }

            if (recentfile.Type == RecentFileType.Ftp)
            {
                this.SelectedImagePath = recentfile.GetFtpUrlFilePath();
                this.OpenImageFtp(recentfile);
            }

            this.CurrentFile = recentfile;
        }