|
using System.ComponentModel;
using SimplePack.Data;
namespace SimplePack.Events
{
///<summary>
/// Delegate which wrap <see cref="ArchiveProgressChangedEventArgs"/> event argument.
///</summary>
///<param name="sender"></param>
///<param name="archiveProgressChangedEventArgs"></param>
public delegate void ArchiveProgressChangedEventHandler(
Archive sender, ArchiveProgressChangedEventArgs archiveProgressChangedEventArgs);
///<summary>
/// Asynchronous Event Argument which is invoked during operation.
///</summary>
public class ArchiveProgressChangedEventArgs : ProgressChangedEventArgs
{
private readonly FileArchive currentFileArchive;
///<summary>
/// Constructor.
///</summary>
///<param name="currentFileArchive">Current <see cref="FileArchive"/> which is processed</param>
///<param name="progressPercentage">percentage of progress</param>
///<param name="userState"></param>
public ArchiveProgressChangedEventArgs(FileArchive currentFileArchive, int progressPercentage, object userState) : base(progressPercentage, userState)
{
this.currentFileArchive = currentFileArchive;
}
///<summary>
/// Current <see cref="FileArchive"/> which is processed.
///</summary>
public FileArchive CurrentFileArchive
{
get { return currentFileArchive; }
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.