UIEvents.cs 2.4 KB

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