AsyncEndEventArgs.cs 782 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. 
  2. using System;
  3. namespace Dongke.WinForm.Controls
  4. {
  5. /// <summary>
  6. /// 异步处理结束事件参数
  7. /// </summary>
  8. public class AsyncEndEventArgs : EventArgs
  9. {
  10. /// <summary>
  11. /// 处理结果
  12. /// </summary>
  13. public object Result
  14. {
  15. get;
  16. set;
  17. }
  18. /// <summary>
  19. /// 异步处理状态
  20. /// </summary>
  21. public bool AsyncResult
  22. {
  23. get;
  24. set;
  25. }
  26. /// <summary>
  27. /// 异步处理结束事件参数
  28. /// </summary>
  29. public AsyncEndEventArgs(bool asyncResult, object result)
  30. : base()
  31. {
  32. this.AsyncResult = asyncResult;
  33. this.Result = result;
  34. }
  35. }
  36. }