/// <summary>
 /// Raises events for the GetStream method.
 /// </summary>
 /// <param name="index">The current item index.</param>
 /// <returns>True if not cancelled; otherwise, false.</returns>
 private bool EventsForGetStream(uint index)
 {
     if (!FastCompression)
     {
         if (_fileStream != null)
         {
             _fileStream.BytesRead += IntEventArgsHandler;
         }
         _doneRate += 1.0f / _actualFilesCount;
         var fiea = new FileNameEventArgs(_files != null? _files[index].Name : _entries[index],
                                          PercentDoneEventArgs.ProducePercentDone(_doneRate));
         OnFileCompression(fiea);
         if (fiea.Cancel)
         {
             Canceled = true;
             return(false);
         }
     }
     return(true);
 }