예제 #1
0
 /// <summary>
 /// Decompress a file
 /// </summary>
 /// <param name="decompressSourceFile">Source of a compressed file</param>
 /// <param name="decompressDestinationFile">Destination of a decompressed file</param>
 public void Decompress(FileInfo decompressSourceFile, FileInfo decompressDestinationFile = null)
 {
     using (_processor = new Decompressor(decompressSourceFile, decompressDestinationFile))
     {
         _processor.Start();
     }
 }
예제 #2
0
 /// <summary>
 /// Compress a file
 /// </summary>
 /// <param name="compressSourceFile">source file</param>
 /// <param name="compressDestinationFile">destination for the compressed file</param>
 public void Compress(FileInfo compressSourceFile, FileInfo compressDestinationFile = null)
 {
     using (_processor = new Compressor(compressSourceFile, compressDestinationFile))
     {
         _processor.Start();
     }
 }