Ejemplo n.º 1
0
 internal static ReadProgressEventArgs Started(string archiveName)
 {
     var x = new ReadProgressEventArgs(archiveName, ZipProgressEventType.Reading_Started);
     return x;
 }
Ejemplo n.º 2
0
 internal static ReadProgressEventArgs Before(string archiveName, int entriesTotal)
 {
     var x = new ReadProgressEventArgs(archiveName, ZipProgressEventType.Reading_BeforeReadEntry);
     x.EntriesTotal = entriesTotal;
     return x;
 }
Ejemplo n.º 3
0
 internal static ReadProgressEventArgs ByteUpdate(string archiveName, ZipEntry entry, Int64 bytesXferred, Int64 totalBytes)
 {
     var x = new ReadProgressEventArgs(archiveName, ZipProgressEventType.Reading_ArchiveBytesRead);
     x.CurrentEntry = entry;
     x.BytesTransferred = bytesXferred;
     x.TotalBytesToTransfer = totalBytes;
     return x;
 }
Ejemplo n.º 4
0
 internal static ReadProgressEventArgs After(string archiveName, ZipEntry entry, int entriesTotal)
 {
     var x = new ReadProgressEventArgs(archiveName, ZipProgressEventType.Reading_AfterReadEntry);
     x.EntriesTotal = entriesTotal;
     x.CurrentEntry = entry;
     return x;
 }