BetterExplorer.ArchiveProcressScreen.ArchiveProcressScreen C# (CSharp) Method

ArchiveProcressScreen() public method

public ArchiveProcressScreen ( IList fileAndDirectoryFullPaths, string archivefullPath, ArchiveAction action, string archivename = null, OutArchiveFormat format = OutArchiveFormat.SevenZip, bool fastcompression = false, string password = null, CompressionLevel compresstionlevel = CompressionLevel.Normal ) : System
fileAndDirectoryFullPaths IList The full path to all the files and directorys to compress or archives to extract
archivefullPath string The path where to place the archive or the extracted files and directorys
action ArchiveAction
archivename string
format OutArchiveFormat The compression format(only for compression)
fastcompression bool If you whan to compresss the files fast(only for compression)
password string (only for compression and if required)
compresstionlevel CompressionLevel How strong must the compression be (only for compression)
return System
        public ArchiveProcressScreen(IList<String> fileAndDirectoryFullPaths, string archivefullPath, ArchiveAction action, string archivename = null, OutArchiveFormat format = OutArchiveFormat.SevenZip, bool fastcompression = false, string password = null, CompressionLevel compresstionlevel = CompressionLevel.Normal)
        {
            SevenZipBase.SetLibraryPath(IntPtr.Size == 8 ? "7z64.dll" : "7z32.dll");
            InitializeComponent();
            _fileAndDirectoryFullPaths = fileAndDirectoryFullPaths;
            _archivePath = archivefullPath;
            _archivename = archivename;
            _action = action;
            _format = format;
            _compresstionlevel = compresstionlevel;
            _password = password;
            _fastcompression = fastcompression;
            _deltatotaal = pb_totaalfiles.Value += (int)(100 / fileAndDirectoryFullPaths.Count);
            tempPath = $"{Path.GetTempPath()}//7zip//";

            pb_compression.Value = 0;
            pb_totaalfiles.Value = 0;
        }