NiceLeftLoadLock.xaml.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using OpenSEMI.ClientBase;
  2. using System.Windows;
  3. using System.Windows.Controls;
  4. using Venus_Themes.Unity;
  5. namespace Venus_Themes.UserControls
  6. {
  7. /// <summary>
  8. /// NiceLeftLoadLock.xaml 的交互逻辑
  9. /// </summary>
  10. public partial class NiceLeftLoadLock : UserControl
  11. {
  12. public NiceLeftLoadLock()
  13. {
  14. InitializeComponent();
  15. }
  16. public static readonly DependencyProperty LLADoorIsOpenProperty = DependencyProperty.Register(
  17. "LLADoorIsOpen", typeof(bool), typeof(NiceLeftLoadLock));
  18. public bool LLADoorIsOpen
  19. {
  20. get { return (bool)this.GetValue(LLADoorIsOpenProperty); }
  21. set
  22. {
  23. this.SetValue(LLADoorIsOpenProperty, value);
  24. }
  25. }
  26. private void OpenLLADoor_Click(object sender, RoutedEventArgs e)
  27. {
  28. //UIEvents.OnPMDoorRaiseChanged(new DoorPara() { ModuleName = "PMD", IsOpen = "Open" });
  29. UIEvents.OnLLEDoorRaiseChanged(new DoorPara() { ModuleName = "LLA", IsOpen = "Open" });
  30. }
  31. private void CloseLLADoor_Click(object sender, RoutedEventArgs e)
  32. {
  33. //UIEvents.OnPMDoorRaiseChanged(new DoorPara() { ModuleName = "PMD", IsOpen = "Close" });
  34. UIEvents.OnLLEDoorRaiseChanged(new DoorPara() { ModuleName = "LLA", IsOpen = "Close" });
  35. }
  36. public static readonly DependencyProperty RobotWaferProperty = DependencyProperty.Register(
  37. "RobotWafer", typeof(WaferInfo), typeof(NiceLeftLoadLock));
  38. public WaferInfo RobotWafer
  39. {
  40. get => (WaferInfo)GetValue(RobotWaferProperty);
  41. set => SetValue(RobotWaferProperty, value);
  42. }
  43. }
  44. }