LoadLock.xaml.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Navigation;
  14. using System.Windows.Shapes;
  15. using OpenSEMI.ClientBase;
  16. using Aitex.Sorter.Common;
  17. namespace VirgoUI.Client.Models.Controls
  18. {
  19. /// <summary>
  20. /// LoadLock.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class LoadLock : UserControl
  23. {
  24. public LoadLock()
  25. {
  26. InitializeComponent();
  27. }
  28. #region UnitData (DependencyProperty)
  29. public ModuleInfo UnitData
  30. {
  31. get { return (ModuleInfo)GetValue(UnitDataProperty); }
  32. set { SetValue(UnitDataProperty, value); }
  33. }
  34. public static readonly DependencyProperty UnitDataProperty =
  35. DependencyProperty.Register("UnitData", typeof(ModuleInfo), typeof(LoadLock), new UIPropertyMetadata(null));
  36. public FoupDoorState ATMDoorStatus
  37. {
  38. get { return (FoupDoorState)GetValue(ATMDoorStatusProperty); }
  39. set { SetValue(ATMDoorStatusProperty, value); }
  40. }
  41. public static readonly DependencyProperty ATMDoorStatusProperty =
  42. DependencyProperty.Register("ATMDoorStatus", typeof(FoupDoorState), typeof(LoadLock), new UIPropertyMetadata(FoupDoorState.Close));
  43. public FoupDoorState SlitValveStatus
  44. {
  45. get { return (FoupDoorState)GetValue(SlitValveStatusProperty); }
  46. set { SetValue(SlitValveStatusProperty, value); }
  47. }
  48. public static readonly DependencyProperty SlitValveStatusProperty =
  49. DependencyProperty.Register("SlitValveStatus", typeof(FoupDoorState), typeof(LoadLock), new UIPropertyMetadata(FoupDoorState.Close));
  50. public int CurrentSlot
  51. {
  52. get { return (int)GetValue(CurrentSlotProperty); }
  53. set { SetValue(CurrentSlotProperty, value); }
  54. }
  55. public static readonly DependencyProperty CurrentSlotProperty =
  56. DependencyProperty.Register("CurrentSlot", typeof(int), typeof(LoadLock), new UIPropertyMetadata(0));
  57. #endregion
  58. }
  59. }