Exemplo n.º 1
0
 internal static ReadProgressEventArgs Completed(string archiveName)
 {
     var x = new ReadProgressEventArgs(archiveName, ZipProgressEventType.Reading_Completed);
     return x;
 }
Exemplo n.º 2
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;
 }
Exemplo n.º 3
0
 internal static ReadProgressEventArgs Before(string archiveName, int entriesTotal)
 {
     var x = new ReadProgressEventArgs(archiveName, ZipProgressEventType.Reading_BeforeReadEntry);
     x.EntriesTotal = entriesTotal;
     return x;
 }
Exemplo 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;
 }
Exemplo n.º 5
0
        internal static ReadProgressEventArgs Started(string archiveName)
        {
            var x = new ReadProgressEventArgs(archiveName, ZipProgressEventType.Reading_Started);

            return(x);
        }