UpdateStartedEvent.cs 877 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using Update.Core.Entities;
  3. namespace Update.Core.Events
  4. {
  5. /// <summary>
  6. /// 检查完毕,开始更新事件类型
  7. /// </summary>
  8. /// <param name="sender"></param>
  9. /// <param name="e"></param>
  10. public delegate void UpdateStartedEventHandler(object sender, UpdateStartedEventArgs e);
  11. /// <summary>
  12. /// 检查完毕,开始更新事件数据
  13. /// </summary>
  14. public class UpdateStartedEventArgs : EventArgs
  15. {
  16. /// <summary>
  17. /// 要下载的更新包集合
  18. /// </summary>
  19. public PackageCollection Packages { get; private set; }
  20. /// <summary>
  21. /// 构造函数
  22. /// </summary>
  23. /// <param name="packages">更新包集合</param>
  24. public UpdateStartedEventArgs(PackageCollection packages)
  25. {
  26. this.Packages = packages;
  27. }
  28. }
  29. }