internal void AfterAddEntry(ZipEntry entry)
        {
            EventHandler <AddProgressEventArgs> ap = AddProgress;

            if (ap != null)
            {
                var e = AddProgressEventArgs.AfterEntry(ArchiveNameForEvent, entry, _entries.Count);
                ap(this, e);
                if (e.Cancel) // workitem 13371
                {
                    _addOperationCanceled = true;
                }
            }
        }
        private void OnAddStarted()
        {
            EventHandler <AddProgressEventArgs> ap = AddProgress;

            if (ap != null)
            {
                var e = AddProgressEventArgs.Started(ArchiveNameForEvent);
                ap(this, e);
                if (e.Cancel) // workitem 13371
                {
                    _addOperationCanceled = true;
                }
            }
        }
Esempio n. 3
0
        internal static AddProgressEventArgs Completed(string archiveName)
        {
            var x = new AddProgressEventArgs(archiveName, ZipProgressEventType.Adding_Completed);

            return(x);
        }
Esempio n. 4
0
 internal static AddProgressEventArgs Completed(string archiveName)
 {
     var x = new AddProgressEventArgs(archiveName, ZipProgressEventType.Adding_Completed);
     return x;
 }
Esempio n. 5
0
 internal static AddProgressEventArgs AfterEntry(string archiveName, ZipEntry entry, int entriesTotal)
 {
     var x = new AddProgressEventArgs(archiveName, ZipProgressEventType.Adding_AfterAddEntry);
     x.EntriesTotal = entriesTotal;
     x.CurrentEntry = entry;
     return x;
 }