KillProcessStartDelegate.cs 1016 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System.ComponentModel;
  2. namespace Update.Net.Events
  3. {
  4. /// <summary>
  5. /// 结束进程工作委托
  6. /// </summary>
  7. /// <param name="e">参数</param>
  8. public delegate void KillProcessStartDelegate(KillProcessStartArgs e);
  9. /// <summary>
  10. /// 结束进程工作参数
  11. /// </summary>
  12. public class KillProcessStartArgs
  13. {
  14. /// <summary>
  15. /// 异步操作生存期
  16. /// </summary>
  17. public AsyncOperation Operation { get; private set; }
  18. /// <summary>
  19. /// 进程所在目录
  20. /// </summary>
  21. public string Directory { get; private set; }
  22. /// <summary>
  23. /// 构造函数
  24. /// </summary>
  25. /// <param name="asyncOp">异步操作生存期</param>
  26. /// <param name="directory">进程所在目录</param>
  27. public KillProcessStartArgs(AsyncOperation asyncOp, string directory)
  28. {
  29. this.Operation = asyncOp;
  30. this.Directory = directory;
  31. }
  32. }
  33. }