Пример #1
0
        private void decryptorBGW_DoWork(object sender, DoWorkEventArgs e)
        {
            FileVO file = (FileVO)e.Argument;

            filesManager.ClearTempDirectory();

            if (isPreviewingImage)
            {
                List <FileVO> images     = GetImageFilesOfDocument();
                List <string> imagePaths = new List <string>();
                string        current;

                foreach (FileVO currFile in images)
                {
                    current = filesManager.StoreFileInTempDirectory(currFile);

                    if (current != "")
                    {
                        imagePaths.Add(current);
                    }
                }

                e.Result = imagePaths;
            }
            else
            {
                string path = filesManager.StoreFileInTempDirectory(file);
                e.Result = path;
            }
        }