UIEvents.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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<IncludePara> IncludeRaiseChangedEvent;
  41. public static void OnIncludeRaiseChanged(IncludePara para)
  42. {
  43. IncludeRaiseChangedEvent?.Invoke(para);
  44. }
  45. public static event Action<IncludePara> OnlineRaiseChangedEvent;
  46. public static void OnOnlineRaiseChanged(IncludePara para)
  47. {
  48. OnlineRaiseChangedEvent?.Invoke(para);
  49. }
  50. }
  51. public class DoorPara
  52. {
  53. public string ModuleName { get; set; }
  54. public string IsOpen { get; set; }
  55. }
  56. public class WaferOperation
  57. {
  58. public string ModuleName { get; set; }
  59. public bool IsCreate { get; set; }
  60. }
  61. public class IncludePara
  62. {
  63. public string ModuleName { get; set; }
  64. public bool IsInclude { get; set; }
  65. }
  66. }