コード例 #1
0
ファイル: ZipExporter.cs プロジェクト: fethier/Playlixp
        /// <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);
        }
コード例 #2
0
ファイル: ZipExporter.cs プロジェクト: fethier/Playlixp
 /// <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)
 {
 }
コード例 #3
0
ファイル: BaseExporter.cs プロジェクト: fethier/Playlixp
 /// <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;
 }