示例#1
0
 public void developFilm(cFilm film)
 {
     foreach (cEncryptedPictureFile enc in film.getEncryptedPictureFiles())
     {
         if (File.Exists(Path.Combine(enc.pEncryptedFilePath, enc.pEncryptedFileName)))
         {
             developPictureFile(film, enc.pEncryptedFileName);
         }
     }
 }
示例#2
0
        public virtual void ReadFilesFromDisk(cFilm film)
        {
            film.getEncryptedPictureFiles().Clear();

            string[] files = Directory.GetFiles(film.pPath, pEncFileName);

            foreach (string file in files)
            {
                var fi = new FileInfo(file);

                long   fileNumber;
                string message;
                if (getFileNumber(fi.Name, fi.DirectoryName, out fileNumber, out message))
                {
                    var enc = new cEncryptedPictureFile {
                        pEncryptedFileName = fi.Name, pEncryptedFilePath = film.pPath, pEncryptedFileNumber = fileNumber
                    };
                    film.addToEncryptedPictureFiles(enc);
                }
            }
        }