Chamber.xaml.cs 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. using Aitex.Core.Common;
  2. using MECF.Framework.Common.Equipment;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows;
  9. using System.Windows.Controls;
  10. using System.Windows.Data;
  11. using System.Windows.Documents;
  12. using System.Windows.Input;
  13. using System.Windows.Media;
  14. using System.Windows.Media.Imaging;
  15. using System.Windows.Navigation;
  16. using System.Windows.Shapes;
  17. namespace EfemUI.Controls
  18. {
  19. /// <summary>
  20. /// LoadLock.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class Chamber : UserControl
  23. {
  24. public Chamber()
  25. {
  26. InitializeComponent();
  27. root.DataContext = this;
  28. }
  29. public WaferInfo Wafer
  30. {
  31. get { return (WaferInfo)GetValue(WaferProperty); }
  32. set { SetValue(WaferProperty, value); }
  33. }
  34. // Using a DependencyProperty as the backing store for WaferItem. This enables animation, styling, binding, etc...
  35. public static readonly DependencyProperty WaferProperty =
  36. DependencyProperty.Register("Wafer", typeof(WaferInfo), typeof(Chamber), new PropertyMetadata(null));
  37. public ModuleName Station
  38. {
  39. get { return (ModuleName)GetValue(StationProperty); }
  40. set { SetValue(StationProperty, value); }
  41. }
  42. // Using a DependencyProperty as the backing store for Station. This enables animation, styling, binding, etc...
  43. public static readonly DependencyProperty StationProperty =
  44. DependencyProperty.Register("Station", typeof(ModuleName), typeof(Chamber), new PropertyMetadata(ModuleName.System));
  45. public ICommand WaferTransferCommand
  46. {
  47. get { return (ICommand)GetValue(WaferTransferCommandProperty); }
  48. set { SetValue(WaferTransferCommandProperty, value); }
  49. }
  50. // Using a DependencyProperty as the backing store for WaferMovementCommand. This enables animation, styling, binding, etc...
  51. public static readonly DependencyProperty WaferTransferCommandProperty =
  52. DependencyProperty.Register("WaferTransferCommand", typeof(ICommand), typeof(Chamber), new PropertyMetadata(null));
  53. public ICommand WaferTransferOptionCommand
  54. {
  55. get { return (ICommand)GetValue(WaferTransferOptionCommandProperty); }
  56. set { SetValue(WaferTransferOptionCommandProperty, value); }
  57. }
  58. // Using a DependencyProperty as the backing store for WaferTransferOptionCommand. This enables animation, styling, binding, etc...
  59. public static readonly DependencyProperty WaferTransferOptionCommandProperty =
  60. DependencyProperty.Register("WaferTransferOptionCommand", typeof(ICommand), typeof(Chamber), new PropertyMetadata(null));
  61. public int RotateAngel
  62. {
  63. get { return (int)GetValue(RotateAngelProperty); }
  64. set { SetValue(RotateAngelProperty, value); }
  65. }
  66. // Using a DependencyProperty as the backing store for RotateAngel. This enables animation, styling, binding, etc...
  67. public static readonly DependencyProperty RotateAngelProperty =
  68. DependencyProperty.Register("RotateAngel", typeof(int), typeof(Chamber), new PropertyMetadata(0));
  69. public bool Disable
  70. {
  71. get { return (bool)GetValue(DisableProperty); }
  72. set { SetValue(DisableProperty, value); }
  73. }
  74. // Using a DependencyProperty as the backing store for RotateAngel. This enables animation, styling, binding, etc...
  75. public static readonly DependencyProperty DisableProperty =
  76. DependencyProperty.Register("Disable", typeof(bool), typeof(Chamber), new PropertyMetadata(true));
  77. public bool Enable => Disable;
  78. }
  79. }