ProgressEvent.cs 789 B

12345678910111213141516171819202122232425262728293031
  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 ProgressEventHandler(object sender, ProgressEventArgs e);
  10. /// <summary>
  11. /// 进度数据
  12. /// </summary>
  13. public class ProgressEventArgs : EventArgs
  14. {
  15. /// <summary>
  16. /// 百分比
  17. /// </summary>
  18. public int ProgressPercentage { get; private set; }
  19. /// <summary>
  20. /// 构造函数
  21. /// </summary>
  22. /// <param name="progressPercentage">进度百分比</param>
  23. public ProgressEventArgs(int progressPercentage)
  24. {
  25. this.ProgressPercentage = progressPercentage;
  26. }
  27. }
  28. }