using System; namespace Update.Core.Events { /// /// 检查完成事件类型 /// /// 事件源 /// 数据 public delegate void CheckCompletedEventHandler(object sender, CheckCompletedEventArgs e); /// /// 检查完成事件数据 /// public class CheckCompletedEventArgs : EventArgs { private bool m_Uptodate; /// /// 获取是否已最新 /// public bool Uptodate { get { return this.m_Uptodate; } } private bool m_Handled; /// /// 获取或设置是否已处理.如果设置为 true,则终止更新 /// public bool Handled { get { return this.m_Handled; } set { this.m_Handled = value; } } /// /// 构造函数 /// /// 是否已最新 public CheckCompletedEventArgs(bool uptodate) { this.m_Uptodate = uptodate; } } }