CheckCompletedEvent.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. namespace Update.Core.Events
  3. {
  4. /// <summary>
  5. /// 检查完成事件类型
  6. /// </summary>
  7. /// <param name="sender">事件源</param>
  8. /// <param name="e">数据</param>
  9. public delegate void CheckCompletedEventHandler(object sender, CheckCompletedEventArgs e);
  10. /// <summary>
  11. /// 检查完成事件数据
  12. /// </summary>
  13. public class CheckCompletedEventArgs : EventArgs
  14. {
  15. private bool m_Uptodate;
  16. /// <summary>
  17. /// 获取是否已最新
  18. /// </summary>
  19. public bool Uptodate
  20. {
  21. get
  22. {
  23. return this.m_Uptodate;
  24. }
  25. }
  26. private bool m_Handled;
  27. /// <summary>
  28. /// 获取或设置是否已处理.如果设置为 true,则终止更新
  29. /// </summary>
  30. public bool Handled
  31. {
  32. get
  33. {
  34. return this.m_Handled;
  35. }
  36. set
  37. {
  38. this.m_Handled = value;
  39. }
  40. }
  41. /// <summary>
  42. /// 构造函数
  43. /// </summary>
  44. /// <param name="uptodate">是否已最新</param>
  45. public CheckCompletedEventArgs(bool uptodate)
  46. {
  47. this.m_Uptodate = uptodate;
  48. }
  49. }
  50. }