GlobalEvents.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 CyberX8_Core
  8. {
  9. public static class GlobalEvents
  10. {
  11. public static event Action<Slot> SlotRightClickChangedEvent;
  12. public static event Action<DragDropEventArgs> SlotWaferTransferEvent;
  13. public static event Action<string, string, string> SwitchFixedTabItem;
  14. public static event Action<string, string> SwitchFixedChildSubItem;
  15. public static void OnSlotRightClickChanged(Slot slot)
  16. {
  17. SlotRightClickChangedEvent?.Invoke(slot);
  18. }
  19. public static void OnSlotWaferTransfer(DragDropEventArgs e)
  20. {
  21. SlotWaferTransferEvent?.Invoke(e);
  22. }
  23. public static void OnSwitchFixedTabItem(string root,string parent,string child)
  24. {
  25. SwitchFixedTabItem?.Invoke(root, parent, child);
  26. }
  27. public static void OnSwitchFixedChildSubItem(string child,string subItem)
  28. {
  29. SwitchFixedChildSubItem?.Invoke(child, subItem);
  30. }
  31. }
  32. }