Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ZipExporter"/> class.
        /// </summary>
        /// <param name="playlist">The playlist.</param>
        /// <param name="compressionLevel">The compression level, 0 is min, 9 is max.</param>
        public ZipExporter(BasePlaylist playlist, int compressionLevel)
            : base(playlist)
        {
            _compressionLevel = compressionLevel < 0 ? 0 : compressionLevel > 9 ? 9 : compressionLevel;

            _backgroundWorker = new BackgroundWorker();
            _backgroundWorker.WorkerReportsProgress = true;
            _backgroundWorker.DoWork += new DoWorkEventHandler(bw_DoWork);
        }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ZipExporter"/> class with no compression.
 /// </summary>
 /// <param name="playlist">The playlist.</param>
 public ZipExporter(BasePlaylist playlist)
     : this(playlist, 0)
 {
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseExporter"/> class.
 /// </summary>
 /// <param name="playlist">The playlist to export.</param>
 public BaseExporter(BasePlaylist playlist)
 {
     _playlist = playlist;
 }