private void SaveImageFtp(RecentFile recentfile) { this.SaveImageLocal(recentfile.GetDownloadFilePath()); Ftp.UploadFile(recentfile.FtpUserName, recentfile.FtpPassword, recentfile.GetFtpUrlFilePath(), recentfile.GetDownloadFilePath()); }
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); }
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; }