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

            return(x);
        }
예제 #4
0
파일: Events.cs 프로젝트: acinep/epplus
 internal static AddProgressEventArgs Completed(string archiveName)
 {
     var x = new AddProgressEventArgs(archiveName, ZipProgressEventType.Adding_Completed);
     return x;
 }
예제 #5
0
파일: Events.cs 프로젝트: acinep/epplus
 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;
 }