public InfoDisplay loadImage(InfoDisplay image) { image.InfoDataList = Bl.BlReferential.searchInfo(new QOBDCommon.Entities.Info { Name = image.TxtFileNameWithoutExtension }, ESearchOption.AND); image.downloadFile(); return(image); }
public static InfoDisplay downloadPicture(this InfoDisplay image, string ftpDirectory, string localDirectory, string recordedFileName, string fileName, List <Info> ftpCredentialInfoList) { if (ftpCredentialInfoList.Count > 0) { image = image.getPicture(ftpDirectory, localDirectory, recordedFileName, fileName, ftpCredentialInfoList); if (image != null) { image.downloadFile(); } } return(image); }