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; } } }
internal static AddProgressEventArgs Completed(string archiveName) { var x = new AddProgressEventArgs(archiveName, ZipProgressEventType.Adding_Completed); return(x); }
internal static AddProgressEventArgs Completed(string archiveName) { var x = new AddProgressEventArgs(archiveName, ZipProgressEventType.Adding_Completed); return x; }
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; }