Example #1
0
        internal static ZipErrorEventArgs Saving(string archiveName, ZipEntry entry, Exception exception)
        {
            var x = new ZipErrorEventArgs
            {
                EventType    = ZipProgressEventType.Error_Saving,
                ArchiveName  = archiveName,
                CurrentEntry = entry,
                _exc         = exception
            };

            return(x);
        }
Example #2
0
 internal bool OnZipErrorSaving(ZipEntry entry, Exception exc)
 {
     if (ZipError != null)
     {
         lock (LOCK)
         {
             var e = ZipErrorEventArgs.Saving(this.Name, entry, exc);
             ZipError(this, e);
             if (e.Cancel)
             {
                 _saveOperationCanceled = true;
             }
         }
     }
     return(_saveOperationCanceled);
 }