using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace iReaper.IndexBuilder.WWESource{
public interface ITask
{
void Initialize();
void Invoke();
event EventHandler<ProgressEventArgs> OnProgress;
}
public class ProgressEventArgs : EventArgs
{
private int _value;
private ProgressEventArgs(int value)
{
_value = value;
}
public int Value { get { return _value; } }
public static ProgressEventArgs EventArgs(int value)
{
return new ProgressEventArgs(value);
}
}
}
|