UIEvents.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace CyberX8_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. }
  31. public class DoorPara
  32. {
  33. public string ModuleName { get; set; }
  34. public string IsOpen { get; set; }
  35. }
  36. public class WaferOperation
  37. {
  38. public string ModuleName { get; set; }
  39. public bool IsCreate { get; set; }
  40. }
  41. }