You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
845 B
C#

namespace CompressorXN_Common
{
public class LogEventHandler
{
#region 初始化
private string log = "-1";
/// <summary>
/// 值变化委托
/// </summary>
/// <param name="newValue"></param>
public delegate void LogChangedEventHandler(object newValue);
/// <summary>
/// 只有Key改变Value还未改变
/// </summary>
public event LogChangedEventHandler LogChanged;
/// <summary>
/// 获得或设置编号
/// </summary>
public string Log
{
get { return log; }
set
{
log = value;
if (LogChanged != null)
{
LogChanged(log);
}
}
}
#endregion
}
}