示例#1
0
文件: Events.cs 项目: pmdcp/framework
        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);
        }
示例#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);
 }
示例#3
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;
 }