UIEvents.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. using System;
  2. namespace athosThemes.Unity
  3. {
  4. public static class UIEvents
  5. {
  6. public static event Action<DoorPara> PMDoorRaiseChangedEvent;
  7. public static void OnPMDoorRaiseChanged(DoorPara para)
  8. {
  9. PMDoorRaiseChangedEvent?.Invoke(para);
  10. }
  11. public static event Action<DoorPara> LLTDoorRaiseChangedEvent;
  12. public static void OnLLTDoorRaiseChanged(DoorPara para)
  13. {
  14. LLTDoorRaiseChangedEvent?.Invoke(para);
  15. }
  16. public static event Action<DoorPara> LLEDoorRaiseChangedEvent;
  17. public static void OnLLEDoorRaiseChanged(DoorPara para)
  18. {
  19. LLEDoorRaiseChangedEvent?.Invoke(para);
  20. }
  21. public static event Action<WaferOperation> ChamberCreateDeleteWaferEvent;
  22. public static void OnChamberCreateDeleteWafer(WaferOperation para)
  23. {
  24. ChamberCreateDeleteWaferEvent?.Invoke(para);
  25. }
  26. public static event Action<int> CurrentPageChangedEvent;
  27. public static void OnCurrentPageChanged(int para)
  28. {
  29. CurrentPageChangedEvent?.Invoke(para);
  30. }
  31. public static event Action<string> InitRaiseChangedEvent;
  32. public static void OnInitRaiseChanged(string module)
  33. {
  34. InitRaiseChangedEvent?.Invoke(module);
  35. }
  36. public static event Action<string> AbortRaiseChangedEvent;
  37. public static void OnAbortRaiseChanged(string module)
  38. {
  39. AbortRaiseChangedEvent?.Invoke(module);
  40. }
  41. public static event Action<IncludePara> IncludeRaiseChangedEvent;
  42. public static void OnIncludeRaiseChanged(IncludePara para)
  43. {
  44. IncludeRaiseChangedEvent?.Invoke(para);
  45. }
  46. public static event Action<IncludePara> OnlineRaiseChangedEvent;
  47. public static void OnOnlineRaiseChanged(IncludePara para)
  48. {
  49. OnlineRaiseChangedEvent?.Invoke(para);
  50. }
  51. }
  52. public class DoorPara
  53. {
  54. public string ModuleName { get; set; }
  55. public string IsOpen { get; set; }
  56. }
  57. public class WaferOperation
  58. {
  59. public string ModuleName { get; set; }
  60. public bool IsCreate { get; set; }
  61. }
  62. public class IncludePara
  63. {
  64. public string ModuleName { get; set; }
  65. public bool IsInclude { get; set; }
  66. }
  67. }