CoolingBufferStation.xaml.cs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 Aitex.Sorter.UI.Controls
  18. {
  19. /// <summary>
  20. /// BufferStation.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class CoolingBufferStation : UserControl
  23. {
  24. public CoolingBufferStation()
  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(CoolingBufferStation), 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(CoolingBufferStation), new PropertyMetadata(ModuleName.System));
  45. public ICommand WaferTransferOptionCommand
  46. {
  47. get { return (ICommand)GetValue(WaferTransferOptionCommandProperty); }
  48. set { SetValue(WaferTransferOptionCommandProperty, value); }
  49. }
  50. // Using a DependencyProperty as the backing store for WaferTransferOptionCommand. This enables animation, styling, binding, etc...
  51. public static readonly DependencyProperty WaferTransferOptionCommandProperty =
  52. DependencyProperty.Register("WaferTransferOptionCommand", typeof(ICommand), typeof(CoolingBufferStation), new PropertyMetadata(null));
  53. public int RotateAngel
  54. {
  55. get { return (int)GetValue(RotateAngelProperty); }
  56. set { SetValue(RotateAngelProperty, value); }
  57. }
  58. // Using a DependencyProperty as the backing store for RotateAngel. This enables animation, styling, binding, etc...
  59. public static readonly DependencyProperty RotateAngelProperty =
  60. DependencyProperty.Register("RotateAngel", typeof(int), typeof(CoolingBufferStation), new PropertyMetadata(0));
  61. }
  62. }