protected void OnProgress(ArchiveProgressType progressType) { if (!suppressProgressEvents) { ArchiveProgressEventArgs e = new ArchiveProgressEventArgs(progressType, currentFileName, (currentFileNumber >= 0) ? currentFileNumber : 0, totalFiles, currentFileBytesProcessed, currentFileTotalBytes, currentArchiveName, currentArchiveNumber, totalArchives, currentArchiveBytesProcessed, currentArchiveTotalBytes, fileBytesProcessed, totalFileBytes); CabEngine.ReportProgress(e); } }
protected void OnProgress(ArchiveProgressType progressType) { if (!SuppressProgressEvents) { var e = new ArchiveProgressEventArgs( progressType, CurrentFileName, CurrentFileNumber >= 0 ? CurrentFileNumber : 0, TotalFiles, CurrentFileBytesProcessed, CurrentFileTotalBytes, CurrentArchiveName, CurrentArchiveNumber, TotalArchives, CurrentArchiveBytesProcessed, CurrentArchiveTotalBytes, FileBytesProcessed, TotalFileBytes); CabEngine.ReportProgress(e); } }