GlobalEvents.cs 849 B

12345678910111213141516171819202122232425262728293031323334
  1. using OpenSEMI.Ctrlib.Controls;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Venus_Core
  8. {
  9. public static class VenusGlobalEvents
  10. {
  11. public static event Action<Slot> SlotRightClickChangedEvent;
  12. public static event Action<DragDropEventArgs> SlotWaferTransferEvent;
  13. public static event Action<string> ReConnectPLCEvent;
  14. public static void OnSlotRightClickChanged(Slot slot)
  15. {
  16. SlotRightClickChangedEvent?.Invoke(slot);
  17. }
  18. public static void OnSlotWaferTransfer(DragDropEventArgs e)
  19. {
  20. SlotWaferTransferEvent?.Invoke(e);
  21. }
  22. public static void OnReConnectPLC(string moduleName)
  23. {
  24. ReConnectPLCEvent?.Invoke(moduleName);
  25. }
  26. }
  27. }