Chamber.xaml.cs 4.0 KB

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