internal void OnReadEntry(bool before, ZipEntry entry)
        {
            EventHandler <ReadProgressEventArgs> rp = ReadProgress;

            if (rp != null)
            {
                ReadProgressEventArgs e = (before)
                    ? ReadProgressEventArgs.Before(ArchiveNameForEvent, _entries.Count)
                    : ReadProgressEventArgs.After(ArchiveNameForEvent, entry, _entries.Count);
                rp(this, e);
            }
        }
Exemplo n.º 2
0
 internal void OnReadEntry(bool before, ZipEntry entry)
 {
     if (ReadProgress != null)
     {
         lock (LOCK)
         {
             ReadProgressEventArgs e = (before)
             ? ReadProgressEventArgs.Before(ArchiveNameForEvent, _entries.Count)
             : ReadProgressEventArgs.After(ArchiveNameForEvent, entry, _entries.Count);
             ReadProgress(this, e);
         }
     }
 }