mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-04-21 21:54:13 +00:00
35 lines
917 B
C#
35 lines
917 B
C#
namespace BinaryObjectScanner
|
|
{
|
|
/// <summary>
|
|
/// Struct representing protection scanning progress
|
|
/// </summary>
|
|
#if NET20 || NET35 || NET40
|
|
public class ProtectionProgress : System.EventArgs
|
|
#else
|
|
public struct ProtectionProgress
|
|
#endif
|
|
{
|
|
/// <summary>
|
|
/// Filename to report progress for
|
|
/// </summary>
|
|
public string? Filename { get; }
|
|
|
|
/// <summary>
|
|
/// Value between 0 and 1 representign the percentage completed
|
|
/// </summary>
|
|
public float Percentage { get; }
|
|
|
|
/// <summary>
|
|
/// Protection information to report
|
|
/// </summary>
|
|
public string? Protection { get; }
|
|
|
|
public ProtectionProgress(string? filename, float percentage, string? protection)
|
|
{
|
|
Filename = filename;
|
|
Percentage = percentage;
|
|
Protection = protection;
|
|
}
|
|
}
|
|
}
|