FileNameEventArgs.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #if UNMANAGED
  2. namespace SevenZip
  3. {
  4. using System;
  5. /// <summary>
  6. /// EventArgs class which stores the file name.
  7. /// </summary>
  8. public sealed class FileNameEventArgs : PercentDoneEventArgs, ICancellable
  9. {
  10. /// <summary>
  11. /// Initializes a new instance of the FileNameEventArgs class.
  12. /// </summary>
  13. /// <param name="fileName">The file name.</param>
  14. /// <param name="percentDone">The percent of finished work</param>
  15. public FileNameEventArgs(string fileName, byte percentDone) :
  16. base(percentDone)
  17. {
  18. FileName = fileName;
  19. }
  20. /// <summary>
  21. /// Gets or sets whether to stop the current archive operation.
  22. /// </summary>
  23. public bool Cancel { get; set; }
  24. /// <summary>
  25. /// Gets or sets whether to stop the current archive operation.
  26. /// </summary>
  27. public bool Skip
  28. {
  29. get => false;
  30. set => throw new NotImplementedException();
  31. }
  32. /// <summary>
  33. /// Gets the file name.
  34. /// </summary>
  35. public string FileName { get; }
  36. }
  37. }
  38. #endif