namespace FileHelpers
{
#if ! MINI
/// Class used to notify the current progress position and other context info.
public class ProgressEventArgs
{
internal ProgressEventArgs(ProgressMode mode, int current, int total)
{
mProgressMode = mode;
mProgressCurrent = current;
mProgressTotal = total;
}
internal ProgressEventArgs()
{
mProgressMode = ProgressMode.DontNotify;
}
private int mProgressCurrent;
private int mProgressTotal;
private ProgressMode mProgressMode = ProgressMode.DontNotify;
/// The current progress position. Check also the ProgressMode property.
public int ProgressCurrent
{
get { return mProgressCurrent; }
}
/// The total when the progress finish. (-1 means undefined)
public int ProgressTotal
{
get { return mProgressTotal; }
}
/// The ProgressMode used.
public ProgressMode ProgressMode
{
get { return mProgressMode; }
}
}
/// Delegate used to notify progress to the user.
/// The Event args with information about the progress.
public delegate void ProgressChangeHandler(ProgressEventArgs e);
#endif
}