CUserEventHost.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. using Pms.EventLibrary;
  2. using Pms.UserEvent.StepBookEvent;
  3. using Pms.UserEvent.TaskBookEvent;
  4. using Pms.UserEvent.SystemEvent;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using Pms.UserEvent.OrderEvent;
  11. using Pms.InternalInterface;
  12. namespace Pms.UserEvent
  13. {
  14. public class CUserEventHost: IPmsEvent
  15. {
  16. public CUserEventHost()
  17. {
  18. // 不要在此文件中打开用户线程 等待PMS线程全部正常启动事件触发后 再打开用户线程
  19. // 在 Pms.UserEvent.SystemEvent.CSystemEvent 开启用户线程
  20. }
  21. public void Initial()
  22. {
  23. // 不要在此文件中打开用户线程 等待PMS线程全部正常启动事件触发后 再打开用户线程
  24. // 在 Pms.UserEvent.SystemEvent.CSystemEvent 开启用户线程
  25. InitUserConfig(); // 初始化用户配置
  26. InitOrderEvent(); // 注册任务事件
  27. InitTaskBookEvent(); // 注册任务簿事件
  28. InitStepBookEvent(); // 注册步骤簿事件
  29. InitSystemEvent(); // 注册系统事件
  30. }
  31. public void Dispose()
  32. {
  33. }
  34. /// <summary>
  35. /// 加载用户配置文件
  36. /// </summary>
  37. private void InitUserConfig()
  38. {
  39. }
  40. /// <summary>
  41. /// 初始化 注册系统事件
  42. /// </summary>
  43. private void InitSystemEvent()
  44. {
  45. CSystemEvent sSystemEvent = new CSystemEvent();
  46. }
  47. /// <summary>
  48. /// 初始化 注册步骤事件
  49. /// </summary>
  50. private void InitStepBookEvent()
  51. {
  52. CStepBookEvent sStepBookEvent = new CStepBookEvent();
  53. }
  54. /// <summary>
  55. /// 初始化注册 任务簿事件
  56. /// </summary>
  57. private void InitTaskBookEvent()
  58. {
  59. CTaskBookEvent sTaskBookEvent = new CTaskBookEvent();
  60. }
  61. /// <summary>
  62. /// 初始化注册 任务事件
  63. /// </summary>
  64. private void InitOrderEvent()
  65. {
  66. COrderEvent sOrderEvent = new COrderEvent();
  67. }
  68. }
  69. }